HeaderPane
Main
Hide
Share Link
Print

Keyboard Interface

The combo box keeps the input focus while its dropdown is open: the keys the user types go to the edit field, and the keys that move in the list are passed to the list.

Dropdown Closed

KeyAction
F4, Alt+Down, Alt+UpOpens the dropdown. With the SftBox.ExtendedUI property set, F4 is ignored and Down opens the dropdown.
Down, UpSelects the next or previous item.
Page Down, Page UpSelects the item one page further down or up (see SftBox.DropDownItems).
Home, EndSelects the first or last item (DropDownList style only; in the edit field, these keys move the caret).
EnterSelects the item whose text equals the typed text, or no item if there is none.
EscapeEnds the filter of the Filter search mode (see Searching).
CharactersEdit the text and search the list. In a DropDownList combo box, the characters typed within a second select the item whose text starts with them.

Dropdown Open

KeyAction
Down, Up, Page Down, Page UpMove in the list. A DropDown combo box shows the text of the item in the edit field; the combo box's selection is unchanged until an item is chosen.
Home, End, Left, RightMove in the list or expand and collapse items (DropDownList style only; in the edit field, these keys move the caret).
EnterChooses the item and closes the dropdown.
Tab, Shift+TabChooses the item, closes the dropdown and moves the input focus to the next or previous control.
EscapeCloses the dropdown and restores the selection and the text.
F4, Alt+Down, Alt+UpChooses the item and closes the dropdown.

In a Simple style combo box, Down, Up, Page Down and Page Up move in the list.

The control's KeyDown, KeyPress and KeyUp events occur for the keys typed into the edit field. Setting KeyEventArgs.Handled or KeyPressEventArgs.Handled stops the processing of a key.