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.

  • enabledboolean
    Default: true

    Pause the shortcuts.