Trevixal API
    Preparing search index...

    Interface ShortcutAction

    A shortcut manager: one place that owns every keyboard binding the chrome advertises, so a shortcut printed beside a menu entry is guaranteed to work, and the user can rebind any of them.

    Bindings use the core keymap grammar ("Mod-Shift-l"; Mod is ⌘ on Apple platforms and Ctrl elsewhere). Actions the browser or the editing surface already handle (cut, copy, paste, Shift+Enter) are native: they are listed and displayed, but only intercepted once the user has rebound them.

    interface ShortcutAction {
        alternateKeys?: string | null;
        group?: string;
        keys: string | null;
        label: string;
        name: string;
        native?: boolean;
        run: (editor: Editor) => void;
    }
    Index
    alternateKeys?: string | null

    A second default binding that fires the same action (Mod-Shift-p beside Mod-k for a command palette). It is printed alongside keys, and it stays live until the action is unbound; rebinding replaces keys only.

    group?: string

    Heading the shortcuts dialog groups the action under.

    keys: string | null

    Default binding, or null for an action that ships unbound.

    label: string
    name: string
    native?: boolean

    Handled natively (browser clipboard, the view's own input pipeline).

    run: (editor: Editor) => void