Document

This is an application command menu. Open File, then use arrow keys within the menu. The navigation links on this page remain ordinary links and use normal Tab navigation.

Keyboard guidance · Testing guidance

Keyboard guidance

Focus a top-level trigger to preview its menu; press Enter or Space to dismiss the preview, or Down Arrow to enter it, or Home or End to enter at the first or last command. In an open top-level menu, Left and Right Arrow preview the adjacent menu with focus on its trigger. Use Up and Down to move between commands, Right Arrow to open a submenu such as Export, Left Arrow or Escape to return from the submenu, Right Arrow on a submenu item without a child submenu to preview the next top-level menu, and Tab to leave the menu.

Testing guidance

Test this demo with keyboard-only input, VoiceOver, and NVDA. The visible focus indicator and status message make the result easy to inspect. To watch the safe triangle that keeps a submenu open while the pointer travels to it, open the demo with ?debug, which paints it.