Skip to content
This page is available as Markdown at /api/keyboard-shortcuts/type-aliases/keyboardshortcutdefinition.md. For the full documentation index, see /llms.txt, or the complete corpus at /llms-full.txt.

KeyboardShortcutDefinition

KeyboardShortcutDefinition = object

Defined in: keyboard-shortcuts.ts:33

Definition of a keyboard shortcut with platform-specific keyboard event definitions.

default keyboard event definitions are required while the apple keyboard event definitions are optional.

const boldShortcut: KeyboardShortcutDefinition = {
default: [{
key: 'B',
alt: false,
ctrl: true,
meta: false,
shift: false,
}],
apple: [{
key: 'B',
alt: false,
ctrl: false,
meta: true,
shift: false,
}],
}

optional apple: ReadonlyArray<KeyboardEventDefinition>

Defined in: keyboard-shortcuts.ts:35


default: ReadonlyArray<KeyboardEventDefinition>

Defined in: keyboard-shortcuts.ts:34