Keyboard Navigation

Keyboard Shortcuts

ShortcutBehavior
Down ArrowSelects the next available item.
Up ArrowSelects the previous available item.
Alt/Opt(Mac) DownOpens pop up
Alt/Opt(Mac) Up or EscCloses popup
EscClears the value if popup is not visible

Typing in the input should focus matched item.

The Popup element of the component must implement the KB specification for a Popup List component.

ShortcutBehavior
Down ArrowMoves the focus to the next item.
Up ArrowMoves the focus to the previous item.
Alt (or Opt on Mac) + Up Arrow or EscCloses the popup.
HomeMoves the focus to the first item. Applicable only when the currently focused element is not an input. When an input is the focused element, the Home and End keys are used for the cursor position.
EndMoves the focus to the last item. Applicable only when the currently focused element is not an input. When an input is the focused element, the Home and End keys are used for the cursor position.
EnterSelects the item.
Page UpScrolls the popup list up.
Page DownScrolls the popup list down.
TabCloses the popup and focuses the next focusable element.

Resources

ARIA Authoring Practices: Combobox Pattern

ARIA Authoring Practices: Listbox Pattern

ARIA Authoring Practices: Editable Combobox

Example
View Source
Change Theme:

See Also

In this article

Not finding the help you need?