Skip to content

fix: reverse order of key matching#47

Merged
zion-off merged 2 commits intomainfrom
fix-backspace-key
Feb 25, 2026
Merged

fix: reverse order of key matching#47
zion-off merged 2 commits intomainfrom
fix-backspace-key

Conversation

@zion-off
Copy link
Copy Markdown
Owner

No description provided.

In capture mode, onKeypress was checked before named bindings. Keys like
backspace have input='' so onKeypress silently did nothing and returned
early, making the explicit binding unreachable.

Swap the dispatch order: named bindings always fire first; onKeypress
is now a fallback for keys with no explicit handler. passthrough retains
its original meaning — keys that should bubble to parent scopes.
Reflect the corrected dispatch order: named bindings fire before
onKeypress, and passthrough means bubble-to-parent rather than
bypass-capture-to-reach-bindings.
@zion-off zion-off merged commit fc97853 into main Feb 25, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant