Theia API Documentation v1.65.0
    Preparing search index...

    Interface RawKeybindingInternal

    Optional representation of key sequence as found in keymaps.json file. Use keybinding as the official representation.

    interface RawKeybinding {
        args?: any;
        command: string;
        context?: string;
        key: string;
        when?: string;
    }

    Hierarchy

    Index

    Properties

    args?: any

    eslint-disable-next-line @typescript-eslint/no-explicit-any

    command: string

    Unique command identifier of the command to be triggered by this keybinding.

    context?: string

    The optional keybinding context where this binding belongs to. If not specified, then this keybinding context belongs to the NOOP keybinding context.

    use when closure instead

    key: string
    when?: string

    An optional clause defining the condition when the keybinding is active, e.g. based on the current focus. See https://code.visualstudio.com/docs/getstarted/keybindings#_when-clause-contexts for more details.