New to Kendo UI for Vue? Start a free 30-day trial

Keyboard Navigation

The keyboard navigation of the ContextMenu is always available. To use it, you have to focus the component by pressing the Tab key.

The ContextMenu supports the following keyboard shortcuts:

SHORTCUTDESCRIPTION
Up ArrowFocuses the previous item.
Down ArrowFocuses the next item.
Left Arrow
  • (For root items) opens the item and focuses the last child.
  • (For child items) closes and focuses the parent.
Right ArrowIf the item has children, opens the item and focuses the first child. For child items without children, opens the next root item and focuses its first child.
HomeFocuses the first item.
EndFocuses the last item.
EnterSelects the focused item. If the item has children, opens the item and focuses the first child. If the item does not have children and has a URL, navigates to the specified URL.
SpaceSelects the focused item. If the item has children, opens the item and focuses the first child. If the item does not have children and has a URL, navigates to the specified URL.
Escape(For child items) Closes and focuses the parent.
Alphanumeric characterFocuses the next item with text starting with the character.
Example
View Source
Change Theme:

If the orientation of the ContextMenu is horizontal, the arrow keys perform the following actions:

SHORTCUTDESCRIPTION
Up Arrow
  • (For root items) Opens the item and focuses the last child.
  • (For child items) Focuses the previous item.
Down Arrow
  • (For root items) Opens the item and focuses the first child.
  • (For child items) Focuses the next item.
Left Arrow
  • (For root items) Focuses the previous item.
  • (For child items) For direct children of a root item, opens the previous root item and focuses its first child. Otherwise, closes and focuses the parent.
Right Arrow
  • (For root items) Focuses the next item.
  • (For child items) If the item has children, opens the item and focuses the first child. Otherwise, opens the next root item and focuses its first child.
Example
View Source
Change Theme:

In this article

Not finding the help you need?