Keyboard Handling for Item Selection
The following keys and key combinations are used for selecting one or multiple items from a list.
Single Selection
Key combination
|
Behavior
|
[Spacebar\]
|
If focus is on an item, selects the item and deselects all others.
|
Multi Selection
Key combination
|
Behavior
|
[Spacebar\]
|
If focus is on an item, selects the item in addition to all previously selected items.
|
[Shift\] + [Up arrow\]
|
If focus is on an item, changes selection state \(selected/ not selected\) to the item above.
|
[Shift\] + [Down arrow\]
|
If focus is on an item, changes selection state \(selected/ not selected\) to the item below.
|
[Ctrl\] + [A\]
|
Selects all items which the user can reach in the current view by scrolling or paging.
If all items are selected, deselects all items.
This is the default behavior of a list.
|
[Ctrl\] + [Shift\] + [A\]
|
Deselects all items which the user can reach in the current view by scrolling or paging.
To select items , you can no longer use [Ctrl\][A\]. You have to use [Spacebar\] for single selection or [Shift\] + [Up arrow\] or [Down arrow\] for multiple selection.
This is the behavior if `multiSelectMode` is set to `ClearAll` for a list.
|