Repository navigation
feat: typing-safe triggers, a tap-action setting, and a live "Try it" chord tester - #16
Merged
Merged
Conversation
… tester - Permissive hold for typing-key triggers (Space, letters, digits, ...): rollover typing no longer fires Ctrl+Alt+Shift chords. - Tap action setting (send trigger / Escape / Nothing); a trigger held alone for over 500 ms sends nothing. Settings schema v3. - Real modifiers never change the trigger phase. - "Try it" row in settings shows the last chord the layer produced. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hyperkey turned on its layer the instant any key went down while the trigger was held. If the trigger was a typing key (Space, a letter, punctuation), fast typing rolled over and sent Ctrl+Alt+Shift+ instead of text, so in practice only Caps Lock worked well. A tap could also only replay the trigger: you couldn't make a tap send Escape, and an aborted hold still toggled Caps Lock.
This PR makes three changes:
Ctrl + Alt + Shift + F, so you can confirm it works without leaving the window.The buffering logic lives in the pure
hyperkey-corestate machine and is driven by event timestamps. The engine arms a timer on the hook thread for the 200 ms deadline. Buffered keys are replayed with their original virtual-key code, scan code and extended flag.Proof: clippy with
-D warningsandcargo test --workspacepass. All 4 real-hook loopback tests pass (--ignored); 2 are new, covering a typing trigger and the tap action. I also ran the release app with injected input: Caps+F produced the chord and left Caps Lock off, a Space rollover produced no chord, and a Space hold produced the chord.Caps Lock + F (Try it shows the chord):

Space trigger, Escape tap, rollover typing → no chord:

Space held + F → chord:

Note: an older Hyperkey build can't read a schema v3 file and falls back to defaults while leaving the file in place, the same way it handles any newer schema.
Reviewed with smol-loop: 1 round with GPT 6 Luna. Minion verdict: approved
Created with Claude Opus 5.5 in Claude Code (T3 Code), with Claude Opus 5.5 workflow subagents and a GPT 6 Luna reviewer.
🤖 Generated with Claude Code