useKeyboardShortcuts
Try Ctrl/Cmd+K, Shift+? or g. Last: none
mod is Cmd on macOS and Ctrl elsewhere. Shortcuts without a modifier are ignored while typing in a field. More in useKeyboardShortcuts.
Props
shortcuts{ [combo: string]: (event) => void }Combos like "mod+k", "shift+?" or "g". Modifiers: mod, ctrl, alt, shift, meta.
enabledbooleanDefault:truePause the shortcuts.
| Prop | Type | Default | Description |
|---|---|---|---|
shortcuts | { [combo: string]: (event) => void } | – | Combos like "mod+k", "shift+?" or "g". Modifiers: mod, ctrl, alt, shift, meta. |
enabled | boolean | true | Pause the shortcuts. |