ContextMenu

The ContextMenu provides a list of options that appear on right-click, giving quick access to relevant and frequently used actions.

Accessibility Support

Out of the box, the Telerik and Kendo UI ContextMenu provides extensive accessibility support and enables users with disabilities to acquire complete control over its features.

The ContextMenu is compliant with the Web Content Accessibility Guidelines (WCAG) 2.2 standards and Section 508 requirements, follows the Web Accessibility Initiative - Accessible Rich Internet Applications (WAI-ARIA) best practices for implementing the keyboard navigation for its component role, provides options for managing its focus and is tested against the most popular screen readers.

WAI-ARIA

This section lists the selectors, attributes, and behavior patterns supported by the component and its composite elements, if any.

SelectorAttributeUsage
.k-context-menurole=menuThe context menu implements the menu role.

Apart from the above, the ContextMenu element should implement the specification for a vertical Menu component.

Managing the Focus

When the context menu is opened, the focus will go to the first item of the context menu. Only one node will have tabindex in the menu.Interaction on a menuitem should focus it.

Keyboard Shortcuts

ShortcutBehavior
Shift+F10When applied to a target, the command opens the ContextMenu.
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, focuses and opens the next root item.
EscapeCloses the ContextMenu and returns the focus to the target.
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.
Alphanumeric characterFocuses the next item with text starting with the character.

Testing

The ContextMenu has been extensively tested automatically with axe-core and manually with the most popular screen readers.

Screen Readers

The ContextMenu has been tested with the following screen readers and browsers combinations:

EnvironmentTool
FirefoxNVDA
ChromeJAWS
Microsoft EdgeJAWS

Resources

Feedback