jatui

KeyboardShortcutsOverlay

?-triggered modal; on-screen keycaps depress on physical keydown while open

Mount once per page and press ? to open. Closes on Escape or another ?. Ignored while typing in inputs. While open, physical keydowns depress the matching on-screen keycap (translateY(1px) + tint, 80ms).

Flat shortcut list

Or press ? anywhere on this page — then press any key to see keycap depress

Sectioned layout

Groups shortcuts by context (Navigation / Selection / Actions)

Extra app sections

Marks & jumps / list motions sections appended after the primary content, before the meta rows — works with sections, registry or flat shortcuts

Host / contributor mode

One mode="host" overlay aggregates the sections of every mode="auto" instance on the page — the "Inbox" and "Composer" contributors above render nothing themselves but appear in the host panel under their sectionTitle. When no host is mounted, contributors self-render instead (the portal / contract-page fallback).

Props

PropTypeDefaultDescription
shortcutsKeyboardShortcut[][]Flat list of {key, description}
sectionsKeyboardShortcutSection[]-Grouped sections (overrides flat list)
registryShortcutRegistry-Read active sections from a shortcut registry (ignored when sections given)
extraSectionsKeyboardShortcutSection[]-App-provided sections appended after the primary content, before the meta rows
extraSnippet-Custom footer snippet rendered just above the meta rows
titlestring"Keyboard Shortcuts"Modal heading
openbooleanfalseBindable open state
mode'auto' | 'host' | 'standalone''auto''host' makes this the global overlay that aggregates contributors; 'auto' contributes to a host when one exists and self-renders otherwise; 'standalone' always self-renders
sectionTitlestring"Page shortcuts"Label under which this instance's sections appear in the host panel when contributing
showHintbooleantrueShow the closed-state press-? hint pill; false opts out (contributors that defer to a host never show one)