An object which represents a key binding.

Notes

A key binding is an immutable object created by a registry.

interface IKeyBinding {
    args: ReadonlyPartialJSONObject;
    command: string;
    keys: readonly string[];
    preventDefault?: boolean;
    selector: string;
}

Properties

The arguments for the command.

command: string

The command executed when the binding is matched.

keys: readonly string[]

The key sequence for the binding.

preventDefault?: boolean

Whether to prevent default action of the keyboard events during sequence matching.

The default value is true.

selector: string

The CSS selector for the binding.