Context-stacked shortcut registry that feeds KeyboardShortcutsOverlay
Shortcuts are registered against contexts; the overlay (?) lists only what can fire right now. Press e to open the editor — a modal context — and j/k/ s stop firing until it closes. Open ? in both states to see the sections change.
Sidebar convention: SIDEBAR_TOGGLE_KEY (Ctrl+\) — Ctrl+B is reserved by
Chrome. On this page it already toggles the docs nav, which handles the event first; the
registry skips defaultPrevented events, so the demo panel below uses s.
Press j, k, x, e or s.