Vizel API / core/src / VizelShortcut
Interface: VizelShortcut
Defined in: packages/core/src/commands/types.ts:17
Platform-specific keyboard shortcut.
Format follows Tiptap's keymap notation: Mod resolves to Cmd on macOS and Ctrl elsewhere; Alt and Shift carry their usual meaning. Examples: "Mod-B", "Mod-Shift-1", "Alt-ArrowUp".
Both fields are required because some shortcuts intentionally differ across platforms (for example, find-and-replace bound to "Mod-F" on macOS and "Ctrl-H" elsewhere). When the two values coincide, set both to the same string.
Properties
mac
ts
readonly mac: string;Defined in: packages/core/src/commands/types.ts:19
Shortcut string for macOS.
other
ts
readonly other: string;Defined in: packages/core/src/commands/types.ts:21
Shortcut string for non-macOS platforms (Windows / Linux).