Skip to main content

Interface: KeybindingDescriptor

Defined in: Extensions/ExtensionApiDtos.ts:36

Single keybinding attached to a command. key uses cross-platform tokens (e.g. Ctrl+J, Cmd+Shift+P). When mac is provided it overrides key on macOS. when is an optional when-expression that further constrains the binding beyond the command's own when clause.

Structurally identical to Spec B's KeybindingDescriptor.

Properties

key

key: string

Defined in: Extensions/ExtensionApiDtos.ts:37


mac?

optional mac?: string

Defined in: Extensions/ExtensionApiDtos.ts:38


when?

optional when?: string

Defined in: Extensions/ExtensionApiDtos.ts:39