-
Notifications
You must be signed in to change notification settings - Fork 45
Description
I noticed this in the KeyHolder example app with a keyboard layout switch as explained in #70:
- Switch from QWERTY to NEO2 keyboard layout
- Press modifier keys and the physical "C" key on my keyboard
Expected: the hotkey is triggered when I press the same physical keys again.
Actual: the hotkey is triggered when I press the same modifiers, but with a different character key (i.e. the one that corresponds to the character that's printed on the physical keyboard)
This is all very confusing to explain :)
So the C key on my keyboard corresponds to the character "C" with the QWERTY layout.
Changing the layout to NEO2, for example, the C key corresponds to the character "Ä". To type the character "C", I have to hit the R key on the keyboard.
The physical key combo ⌘⇧⌥⌃C with the NEO2 layout stores the key code for "C". But to triggerer the HotKey, I have to press different keys on the keybard than the one I used to record the hotkey, i.e. in this case ⌘⇧⌥⌃R on the physical keyboard, because the R key types the "C" character.
The translation of pressed keys into QWERTY key codes does work, but it's apparently not used to install the keyboard listener.