interface KeyBinding {
    action: KeyAction;
    combo: string;
    command: null | string;
    defaultCombo: string;
    group: string;
    hidden: boolean;
    id: number;
    inText: boolean;
    label: string;
    layered: boolean;
    rebindable: boolean;
    scope: KeyScope;
    when?: () => boolean;
}

Properties

action: KeyAction
combo: string

Canonical chord in force (see parseKeyCombo): the default, or the user's. '' while unbound.

command: null | string

Its stable name, or null for a binding registered without one.

defaultCombo: string

The chord it was registered with, which reset returns it to.

group: string
hidden: boolean
id: number

Registration number, in the order bindings were made.

inText: boolean
label: string
layered: boolean

Shares its chord deliberately; see KeyBindingOptions.layered.

rebindable: boolean

Whether rebind may move it.

scope: KeyScope
when?: () => boolean