Skip to content

Use strict equality of key events instead of mods contains#786

Merged
HalFrgrd merged 1 commit into
masterfrom
strict_key_event_matching
Jul 5, 2026
Merged

Use strict equality of key events instead of mods contains#786
HalFrgrd merged 1 commit into
masterfrom
strict_key_event_matching

Conversation

@HalFrgrd

@HalFrgrd HalFrgrd commented Jul 5, 2026

Copy link
Copy Markdown
Owner

Enforces strict equality (==) on key event modifiers rather than subset matching (contains).

This prevents general, unmodified bindings (like AnyChar for standard text insertion) from matching keypresses that carry modifiers (such as Ctrl+a), which previously caused commands like flyline key list Ctrl+a to list unrelated character-insertion bindings.

I used to think it was superior behaviour to handle subsetting. But I realized now it just confusing and adds complexity.
VS Code seems to require strict behaviour also.

@HalFrgrd HalFrgrd merged commit 1c9b23d into master Jul 5, 2026
@HalFrgrd HalFrgrd deleted the strict_key_event_matching branch July 5, 2026 15:15
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