Interface ShortcutManagerOptions

interface ShortcutManagerOptions {
    customShortcuts?: CustomShortcut[];
    disabledCommands?: string[];
    isMac?: boolean;
    overrides?: Record<string, null | string | string[]>;
    persist?: boolean;
    preset?: ShortcutPreset;
    scope?: ShortcutScope;
    storageKey?: string;
}

Properties

customShortcuts?: CustomShortcut[]
disabledCommands?: string[]

Commands to unbind entirely (still listed in list()).

isMac?: boolean

Force platform (⌘ vs Ctrl). Auto-detected when omitted.

overrides?: Record<string, null | string | string[]>

Rebind (string/string[]) or unbind (null) a command, still listed.

persist?: boolean

Persist rebinds/preset to localStorage.

hover fires while the pointer is over the chart (or it is focused); global always.

storageKey?: string