createShortcutter
createShortcutter(
options?):Shortcutter
Defined in: shortcutter.ts:71
Creates a shortcut manager listening on options.target (or window).
Parameters
Section titled “Parameters”options?
Section titled “options?”ShortcutterOptions = {}
Returns
Section titled “Returns”Example
Section titled “Example”const shortcutter = createShortcutter();shortcutter.listen('ControlOrMeta+K', () => openPalette(), { preventDefault: true });