Components
← All components

Context Menu

stimeo--context-menu

A right-click menu that opens at the pointer and can be called up from the keyboard.

  • Core
  • Menu

A menu opened by right-clicking. Inside, it behaves like any menu; only how you call it and where it appears differ. From the keyboard it answers to Shift+F10 or the menu key. The browser's own menu is suppressed. The coordinate you clicked is handed to CSS, so the menu can be placed from CSS alone without loading the placement module. When you do want it to turn around at a screen edge, that module can take over. Opening moves focus to the first item, the arrow keys wrap around, and Home and End jump to the ends. Activating an item or pressing Esc closes it and returns focus where it came from. Tabbing out closes it without pulling focus back.

running
Right-click here for actions

Keyboard

KeyAction
Shift+F10 / ContextMenu Open the menu from the focused region (at its center).
↑ / ↓ Move focus to the previous / next item (wrapping).
Home / End Move focus to the first / last item.
Enter / Space Activate the focused item and close (native button).
Esc Close the menu and return focus to the region.
Tab Close the menu; focus moves on naturally.