Keyboard Navigation

The keyboard navigation of the ContextMenu is always available.

When the ContextMenu is focused, the first root item is activated.

The ContextMenu supports the following keyboard shortcuts:

SHORTCUT DESCRIPTION
Home Focuses the first item.
End Focuses the last item.
Left Arrow
  • Moves the active item on the root level of a horizontal ContextMenu to the left.
  • Closes an item group.
Right Arrow
  • Moves the active item on the root level of a horizontal ContextMenu to the right.
  • Opens an item group of a vertical ContextMenu.
  • If the previous active item has been inside an item group, moves the active state to the next root item of a horizontal ContextMenu.
Up Arrow Moves upwards the active item of a vertical ContextMenu item group.
Down Arrow
  • Moves downwards the active item of a vertical ContextMenu item group.
  • Opens an item group of a horizontal ContextMenu.
Enter Selects or navigates the focused item.
Space Selects or navigates the focused item.
Esc Closes an item group.
(Shift+) Tab Blurs the ContextMenu and moves the focus to the next or previous focusable element on the page.

See Also

In this article
Not finding the help you need? Improve this article