Add a foundation model for typeahead search of UIs.
Review Request #13627 — Created March 11, 2024 and submitted
This introduces
TypeaheadBuffer
, which tracks key presses made within
a short period of time (default is 3 seconds) for the purposes of
navigating a UI (such as a menu or sidebar). It takes care of
maintaining its buffer based on key presses and assisting in performing
matches based on the keys pressed.Components can instantiate this, send key presses, listen to buffer
changes, and use those and helper methods to help find the relevant
element in the UI to select.This does not provide any visuals showing what's been typed (though that
may come later, based on work done in another codebase).
Unit tests pass.
Summary | ID |
---|---|
a4cd3e23d244990a4582cb28aed8a923735b4d24 |
- Change Summary:
-
- Buffer text is now normalized when set, fixing comparison issues.
- Fixed some type-related issues and type name consistency.
- Added a missing file-level comment.
- Summary:
-
Add a fondation model for typeahead search of UIs.Add a foundation model for typeahead search of UIs.
- Commits:
-
Summary ID 87d4cc75aeffed139323a96c16a525878700f656 a4cd3e23d244990a4582cb28aed8a923735b4d24
Checks run (2 succeeded)
- Description:
-
~ This introduces
typeaheadBuffer
, which tracks key presses made within~ This introduces
TypeaheadBuffer
, which tracks key presses made withina short period of time (default is 3 seconds) for the purposes of navigating a UI (such as a menu or sidebar). It takes care of maintaining its buffer based on key presses and assisting in performing matches based on the keys pressed. Components can instantiate this, send key presses, listen to buffer
changes, and use those and helper methods to help find the relevant element in the UI to select. This does not provide any visuals showing what's been typed (though that
may come later, based on work done in another codebase).