v1.0.2
Fix useHotkeys hook
This release fixes a stuck-key bug in useHotkeys and reworks hotkey matching to read modifiers directly from the keyboard event.
Fixes
useHotkeysβ fixed a bug where keys could get stuck and the hotkey would stop firing. On macOS, releasing Cmd doesn't dispatchkeyupfor the regular keys held with it, so the previously pressed keys stayed in the accumulator forever. Modifiers are now read directly from the event flags (event.ctrlKey,event.metaKey, etc.) instead of being accumulated across events, so the bug is gone by design.useHotkeysβ fixed the callback firing twice for a single press. The hook now listens only tokeydowninstead of bothkeydownandkeyup.useHotkeysβ fixed key normalization where special keys (space,escape,enter, arrows, etc.) could fail to match because the lookup ran against the raw key instead of the normalized one.useHotkeysβ added themodmodifier (ctrlon Windows/Linux,metaon macOS) and modifier aliases (control,cmd,command) for cross-platform hotkeys.