feat(web): add typeahead keyboard selection to Select (Alpha) - #870
Open
adrienzheng-cb wants to merge 2 commits into
Open
feat(web): add typeahead keyboard selection to Select (Alpha)#870adrienzheng-cb wants to merge 2 commits into
adrienzheng-cb wants to merge 2 commits into
Conversation
Collaborator
🟡 Heimdall Review Status
🟡
|
| Code Owner | Status | Calculation | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| ui-systems-eng-team |
🟡
0/1
|
Denominator calculation
|
Contributor
The web Select (Alpha) previously only matched the first letter of an option and only when opening the listbox. Add native <select>-style typeahead: a multi-character search buffer that resets ~500ms after the last keystroke, repeated-key cycling through options that share a first letter, and matching that works both when the listbox is open and closed. Buffer/matching logic is extracted into a pure typeahead module with focused unit tests. Refs CDS-2505 Co-authored-by: Cursor <cursoragent@cursor.com>
adrienzheng-cb
force-pushed
the
adrienzheng/cds-2505-select-alpha-lacks-typeahead-keyboard-selection
branch
from
September 1, 2026 16:05
03570c8 to
6365eba
Compare
Unify the closed- and open-state key guards behind a shared isTypeaheadKeyEvent helper and reduce comments to intent-only. Co-authored-by: Cursor <cursoragent@cursor.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.
What changed? Why?
Adds native
<select>-style typeahead keyboard selection to the webSelect (Alpha):<select>semantics.keydownlistener so keystrokes are handled consistently even after focus moves into the portaled dropdown.typeahead.tsmodule (isPrintableTypeaheadKey,normalizeOptionText,getTypeaheadMatchIndex) with focused unit tests.The previous implementation only matched the first letter of an option and only at open time, so users could not type multiple characters or cycle between same-prefixed options.
Testing
How has it been tested?
Testing instructions
Focus a web
Select (Alpha)and type characters: with the listbox closed, typing opens it and focuses the first match; with it open, continue typing to refine the prefix match, or repeat a single letter to cycle through same-prefixed options. Seetypeahead.test.tsfor the pure matching logic and the addedSelect.test.tsxcases for integration behavior.Linear: https://linear.app/coinbase/issue/CDS-2505
Change management
type=routine
risk=low
impact=sev5
automerge=false
Made with Cursor