Repository navigation
Query Filter: Add focus-only keyboard type-ahead - #781
Open
jamesbregenzer wants to merge 1 commit into
Open
jamesbregenzer wants to merge 1 commit into
jamesbregenzer wants to merge 1 commit into
Conversation
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.
Thanks @StevenDufresne for opening #541 and for the clear native-select behavior to aim for.
Summary
This adds focus-only keyboard type-ahead to the open Query Filter using its existing Interactivity API. Typed label prefixes move focus among enabled options without filtering the list or changing checked state. A short 500 ms prefix window supports multiple characters; repeating a single starting letter cycles through matching options. A miss leaves focus unchanged, and a failed prefix extension starts a fresh search from its latest character.
Escape and the existing Tab focus trap are preserved. Space continues to activate checkboxes and radios natively, and radio arrow-key behavior is unchanged. Modifier shortcuts, IME composition, and editable controls are left alone. This patch does not change Apply/Clear or submission behavior; PR #748's empty-form submission fix remains separate.
Verification
These checks used local fixtures, not the live production site. The patch was checked against
trunkat3b104f0554e80d7712d90d92e6ac3c46a3716c41on 2026-10-15.