Variation: list with inline auto complete
Considerations (1 of 3):
- when the dropdown is displayed, the suggested values that that would complete the typed characters will appear
- the first suggestion will appear inline and complete the suggested selection that the user hasn't typed yet
- the first suggestion is automatically highlighted as selected
- the automatically selected suggestion becomes the value of the textbox when the combobox loses focus (unless the user chooses a different suggestion)
Keyboard Navigation (2 of 3):
- DOWN ARROW
- if the listbox is not displayed, the listbox is opened and moves focus to the first value; subsequent keypresses will move the focus to the next item in the list.
- UP ARROW
- if the listbox is not displayed, the listbox is opened and focused is moved to the last value; subsequent keypresses will move the focus to the previous item in the list.
- ENTER
- If there is an option selected, the textbox value is set and the listbox is closed.
- ESCAPE
- Clears the textbox and closes the listbox if it's displayed.
Notes (3 of 3):
- I'm still seeing some strangeness from the use of the native and listbox, so I'll have to see if I can consistently control that. I haven't quite pinned down the precise conditions under which the observed behavior can be replicated.
- Clicking inside of the list will give you different results than pressing the down arrow. this might be a browser extension I have installed or a browser setting I have turned on to remember my past choices for things?