Skip to content

Commit

Permalink
add non-working code for cyrillic keyboard
Browse files Browse the repository at this point in the history
  • Loading branch information
kjk committed Aug 9, 2024
1 parent ab630bb commit 7a8ce51
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Accelerators.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 7a8ce51

Please sign in to comment.