Repository navigation
XKey v1.2.25 (Build 20260915)
What's New
fix(hotkey): keep a cleared hotkey cleared across settings reloads
Clearing a hotkey stores keyCode 0 with no modifiers, which loadPreferences
read back the same as a key that was never written, so the built-in default
came back the next time the settings window opened (#324).
Check for the presence of the stored key instead of its value, for the four
hotkeys whose default is non-empty: toggleHotkey, tempOffToolbarHotkey,
translationHotkey and debugHotkey.
A cleared toggle hotkey also matched a plain "A" keystroke, because keyCode 0
with no modifiers is what an unmodified "A" key down carries. Add Hotkey.isUnset
and unregister the hotkey instead of arming it; the other hotkeys already guard
on keyCode, which the toggle hotkey cannot use because it supports
modifier-only combinations.
Bump the build number to 20260915.