Description
Hi. Looks like current implementation does not support different keyboard languages.
For example if I register shortcut with English keyboard, everything working good (even after language change). But when I register shortcut with non-English active keyboard (Ukrainian for example), shortcut doesn't get registered.
After some debug, I found that the reason of the problem is in the VkKeyScan
function:
QHotkey/QHotkey/qhotkey_win.cpp
Lines 41 to 45 in 080ddd4
This function always return -1
if current active keyboard is non-English.
As documentation said:
Translates a character to the corresponding virtual-key code and shift state for the current keyboard.
If the function finds no key that translates to the passed character code, both the low-order and high-order bytes contain –1.
So this function is dependends on the current active keyboard and should be replaced with to something else.