End is pressed, the listbox scrolls all the way to the top or to the bottom. If focusItem is called, the focused option will be scrolled to the top of the view if it was located above it or to the bottom if it was below it.
If the mouse is clicked on a partially visible option, it will be scrolled fully into view. When a fully visible option is focused in any way, no scrolling occurs. Keyboard Support The example listbox on this page implements the following keyboard interface. Other variations and options for the keyboard interface options collapsed described in the Keyboard Interaction section of the Listbox Design Pattern.
Key Function Enter If the focus is on the button, expands the listbox and places focus on the currently selected option in the list. If focus is in the listboxcollapses the listbox and keeps the currently selected option as the button label. Escape If the listbox is displayed, collapses the listbox and moves focus to the button.
Down Arrow Moves focus to and selects the next option. If the listbox is collapsed, also expands the list. Up Arrow Moves focus to and selects the previous option.
Home If the listbox is displayed, moves focus to and selects the options collapsed option. End If the listbox is displayed, moves focus to and selects the last option. Printable Characters Type a character: focus moves to the next item with a name that starts with the typed character.
Type multiple characters in rapid succession: focus moves to the next item with a name that starts with the string of characters typed.