Contextual Pointer Guidance
Blocked pointer clicks teach the keyboard path for the clicked control instead of a generic legend. Acceptance coverage lives in Shortcuts.
How it works
- Interactive targets opt in with
data-pointer-action(anddata-pointer-event-idfor a specific event). - Capture-phase suppression resolves the nearest annotated ancestor in
composedPath()and stores that attempt on the pointer-block store. PointerHintrenders copy for the attempt. Sidebar open/close teach]. Event open teaches the current jump token plus Enter, orSif no token is available.- A primary event click also dispatches
compass:pointer-event-jumpso the mounted grid's event-jump owner can assign tokens and activate leaderless sequences. Right-clicks stay on the generic fallback soMstill opens the context menu.
Unannotated controls keep the generic keyboard-only fallback.
Adding a target
- Add a
POINTER_ACTIONSid. - Annotate the interactive element, not an inner icon.
- Teach that id in
PointerHint. - Keep the shown shortcut executable from the current view and lock state.