import * as Dialog from "@radix-ui/react-dialog"; import { Kbd } from "../design/components/primitives/Kbd"; import { useShortcuts } from "./shortcutRegistry"; /** * Keyboard help overlay — registry-driven (Wave R brief R0d). * * Rows render from the live shortcut registry, where binding sites register * exactly what they handle while mounted. Advertising an unimplemented * shortcut is structurally impossible: there is no hand-maintained list to * drift. (R0a removed three false rows by hand; this removes the failure * mode itself.) */ export function KeyboardHelp({ open, onOpenChange, }: { open: boolean; onOpenChange: (open: boolean) => void; }) { const shortcuts = useShortcuts(); return ( Keyboard Shortcuts Keyboard shortcuts currently active in the workbench.
{shortcuts.map((s) => (
{s.keys}
{s.action}
))}
); }