Keyboard support in WinUI AutoComplete (SfAutoComplete)

16 Feb 20221 minute to read

This section explains the shortcut keys that are supported by the AutoComplete control.

Keyboard behaviors

The following table explains how to use shortcut key for opening and closing drop-down.

Key or KeyCombinations Behavior
Escape If the drop-down is already open, pressing the Escape key will cancel the selection and close the drop-down.
Tab, Shift+Tab If the drop-down is already open, pressing the Tab or Shift+Tab key will update selected item and close the drop-down.

The following table explains how to use the shortcut key to navigate and highlight the items in a drop-down list.

Key or KeyCombinations Single selection mode Multiple selection mode
Up, Ctrl+Up, Shift+Up Moves the focus and selection to the previous item from the current focused item. Moves the focus to the previous item from the current focused item.
Down, Ctrl+Down, Shift+Down Moves the focus and selection to the next item from the current focused item. Moves the focus to the next item from the current focused item.
PageUp, left - Move the focus on selected items from right to left when the textbox has focus.
PageDown, Right - Moves the focus on multiple selected items from left to right when the textbox has focus.