What the person is doing
Users may invoke commands through right click, secondary click, long press, context-menu key, Shift+F10, or another platform-specific request.
Application · lesson 11 of 21 · Disclosure And Attention Management
Underlying principle: Attention is part of the task. Disclosure reveals supporting detail when it becomes useful; interruption earns prominence when the person must decide or act before continuing.
Provide a compact command menu that opens from the invoked object or selection by pointer and keyboard context-menu requests, keeps the target visibly selected, moves focus into the menu, supports menu keyboard behavior, and returns focus to the target on close.
Attention is part of the task. Disclosure reveals supporting detail when it becomes useful; interruption earns prominence when the person must decide or act before continuing.
Users may invoke commands through right click, secondary click, long press, context-menu key, Shift+F10, or another platform-specific request.
Provide a compact command menu that opens from the invoked object or selection by pointer and keyboard context-menu requests, keeps the target visibly selected, moves focus into the menu, supports menu keyboard behavior, and returns focus to the target on close.
Resting object or selection state before invocation.
What exact object, selection, or location invoked this context menu?
The menu opens only for the object, selection, or location that invoked it.
Users may invoke commands through right click, secondary click, long press, context-menu key, Shift+F10, or another platform-specific request.
Open the working example, try its controls, and compare the behavior against the decision guidance.
Users may invoke commands through right click, secondary click, long press, context-menu key, Shift+F10, or another platform-specific request.
Provide a compact command menu that opens from the invoked object or selection by pointer and keyboard context-menu requests, keeps the target visibly selected, moves focus into the menu, supports menu keyboard behavior, and returns focus to the target on close.
Resting object or selection state before invocation.
The menu opens for a stale selected object instead of the object under the pointer.
Support keyboard invocation through the context-menu key or Shift+F10 where the platform expects it.
MDN Web Docs - checked
Supports right-click and context-menu-key invocation plus compatibility cautions.
W3C WAI - checked
Supports menu semantics, keyboard movement, Escape behavior, and Shift+F10 invocation.
Microsoft Fluent 2 Design System - checked
Supports menus as hidden lists for immediate actions or navigation rather than input collection.
Apple - checked
Supports item-related commands without interface clutter.
Source trail checked: