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.
I noticed this in the KeyHolder example app with a keyboard layout switch as explained in #70:
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
Ckey on my keyboard corresponds to the character "C" with the QWERTY layout.Changing the layout to NEO2, for example, the
Ckey corresponds to the character "Ä". To type the character "C", I have to hit theRkey on the keyboard.The physical key combo
⌘⇧⌥⌃Cwith the NEO2 layout stores the key code for "C". But to triggerer theHotKey, I have to press different keys on the keybard than the one I used to record the hotkey, i.e. in this case⌘⇧⌥⌃Ron the physical keyboard, because theRkey 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.