Whether hotkeys bound with a key name move to a different key when the keyboard
layout changes, so that they stay on the key that types that character. Default is true.
For example, a hotkey bound to "w" is on the key US-ANSI calls W while a US layout is
active, and moves to the key US-ANSI calls , when you switch to Dvorak, since that's where
Dvorak types w. Hotkeys bound with a numeric key code never move.
When false, a hotkey stays on whichever key its name resolved to when it was created, as in
Hammerspoon v1. Setting this back to true moves existing hotkeys to the current layout.
If the new layout doesn't type a hotkey's character and the character has no US-ANSI
position either, the hotkey stays where it is and a warning is logged.
Avoid binding some hotkeys by key name and others by numeric key code with the same
modifiers if you switch layouts. A hotkey that moves onto a key code another hotkey already
holds can't be registered there, so it's disabled with an error logged, and it stays
disabled until you call its enable() again, even after switching back.
Whether hotkeys bound with a key name move to a different key when the keyboard layout changes, so that they stay on the key that types that character. Default is true. For example, a hotkey bound to
"w"is on the key US-ANSI callsWwhile a US layout is active, and moves to the key US-ANSI calls,when you switch to Dvorak, since that's where Dvorak typesw. Hotkeys bound with a numeric key code never move. When false, a hotkey stays on whichever key its name resolved to when it was created, as in Hammerspoon v1. Setting this back to true moves existing hotkeys to the current layout. If the new layout doesn't type a hotkey's character and the character has no US-ANSI position either, the hotkey stays where it is and a warning is logged. Avoid binding some hotkeys by key name and others by numeric key code with the same modifiers if you switch layouts. A hotkey that moves onto a key code another hotkey already holds can't be registered there, so it's disabled with an error logged, and it stays disabled until you call itsenable()again, even after switching back.