From 7a8ce51dbf7fd8c82d46a484142bf1b721419055 Mon Sep 17 00:00:00 2001 From: Krzysztof Kowalczyk Date: Fri, 9 Aug 2024 22:08:03 +0200 Subject: [PATCH] add non-working code for cyrillic keyboard --- src/Accelerators.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Accelerators.cpp b/src/Accelerators.cpp index a19608721d14..95ed59db0509 100644 --- a/src/Accelerators.cpp +++ b/src/Accelerators.cpp @@ -314,7 +314,17 @@ static bool ParseShortcut(const char* shortcut, ACCEL& accel) { c -= ('a' - 'A'); } } +#if 1 accel.key = c; +#else + // trying to get cyryllic keyboard, doesn't work + HKL kl = GetKeyboardLayout(0); + SHORT key = VkKeyScanExW((WCHAR)c, kl); + if (key == -1) { + key = (SHORT)c; + } + accel.key = (WORD)key; +#endif return true; }