Primitives
Editor.KeybindingHelp
Modal listing every active keyboard shortcut. Opens via mod+/.
Modal listing every active keyboard shortcut. Opens via mod+/.
Usage
import { Editor } from '@docmosaic/react';
<Editor.Root>
<Editor.KeybindingHelp />
</Editor.Root>;API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| keymap | Partial<EditorKeymap> | undefined | - | Override the displayed keymap. Defaults to DEFAULT_KEYMAP. Pass the same partial map you handed to
|
| open | boolean | undefined | - | Externally control the open state. When omitted, the dialog manages its own visibility and listens for the |
| onOpenChange | ((open: boolean) => void) | undefined | - | Called when the user requests open/close. |
Related
- Root - the orchestrator