When I click the model selector button just below the prompt field in Kagi Assistant, a panel opens with tabs (Assistants / Custom / Models) and a text field for searching within them. At the moment, the keyboard focus does not move into that search field. I have to click it with the mouse before I can type.
I would like the search field to be focused automatically as soon as the model picker opens, so I can immediately type the name of the model or assistant I want.
I noticed this in a Firefox private window. I haven't confirmed whether it also happens in a normal window.
Impact on existing workflows:
- Nothing would change for mouse users. They can still click or scroll as they do now.
- Keyboard users would be able to switch models without leaving the keyboard, which makes the picker quicker and more accessible.
Proposed keyboard-only flow:
- Click (or Tab to and press Enter on) the model selector button under the prompt field.
- The picker opens and the "search models" text field is focused automatically, with the caret ready.
- Type part of a name (e.g. "claude" or "gpt") and the list filters as I type.
- Press Enter, or use the arrow keys and then Enter, to select the model. The picker closes and focus returns to the prompt field, ready to type.
Why this matters:
- Users who prefer the keyboard, or who rely on it for accessibility reasons (motor impairments, screen readers), currently have to reach for the mouse at this one step.
- It is the standard pattern for searchable dropdowns and command palettes, so it is what most people would expect. GitHub's command palette, VS Code's Quick Open, Slack's channel switcher and the model pickers in other AI chat apps all focus their search field when opened.
Implementation suggestion:
- Focus the search input when the picker opens, for example with the
autofocus attribute or a call to .focus() after the panel renders.
- This may be needed explicitly for Firefox private windows, where autofocus behaviour can differ.
- Make sure focus is also set correctly when switching between the Assistants, Custom and Models tabs.
Environment: Firefox (private window), desktop. Please add your Firefox version and operating system here.