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.
| Key | Action |
|---|---|
| F4, Alt+Down, Alt+Up | Opens the dropdown. With the SftBox.ExtendedUI property set, F4 is ignored and Down opens the dropdown. |
| Down, Up | Selects the next or previous item. |
| Page Down, Page Up | Selects the item one page further down or up (see SftBox.DropDownItems). |
| Home, End | Selects the first or last item (DropDownList style only; in the edit field, these keys move the caret). |
| Enter | Selects the item whose text equals the typed text, or no item if there is none. |
| Escape | Ends the filter of the Filter search mode (see Searching). |
| Characters | Edit 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. |
| Key | Action |
|---|---|
| Down, Up, Page Down, Page Up | Move 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, Right | Move in the list or expand and collapse items (DropDownList style only; in the edit field, these keys move the caret). |
| Enter | Chooses the item and closes the dropdown. |
| Tab, Shift+Tab | Chooses the item, closes the dropdown and moves the input focus to the next or previous control. |
| Escape | Closes the dropdown and restores the selection and the text. |
| F4, Alt+Down, Alt+Up | Chooses 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.