Skip to main content

MonacoShortcutHandler

Extends

Constructors

Constructor

new MonacoShortcutHandler(options2): MonacoShortcutHandler;

Parameters

ParameterType
options2MonacoShortcutHandlerOptions

Returns

MonacoShortcutHandler

Overrides

ShortcutHandler<MonacoShortcut>.constructor

Properties

PropertyTypeInherited from
deserializedbooleanShortcutHandler.deserialized
loggerLoggerShortcutHandler.logger
optionsShortcutHandlerOptionsShortcutHandler.options

Accessors

initialized

Inherited from

ShortcutHandler.initialized

store

Get Signature

get store(): MonacoKeybindingStore;
Returns

MonacoKeybindingStore

Methods

addShortcut()

addShortcut(shortcut): void;

Parameters

ParameterType
shortcutMonacoShortcut

Returns

void

Inherited from

ShortcutHandler.addShortcut

deserialize()

deserialize(data): Promise<void>;

Parameters

ParameterType
dataShortcutHandlerSerialized

Returns

Promise<void>

Overrides

ShortcutHandler.deserialize

dispose()

dispose(): void;

Returns

void

Inherited from

ShortcutHandler.dispose

doDeserialize()

doDeserialize(data): void;

FYI: This is called after init()

Parameters

ParameterType
dataany

Returns

void

Inherited from

ShortcutHandler.doDeserialize

doSerialize()

doSerialize(): any;

Returns

any

Inherited from

ShortcutHandler.doSerialize

generateShortcut()

generateShortcut(data): MonacoShortcut;

Parameters

ParameterType
dataShortcutHandlerAction<MonacoShortcutHandler>

Returns

MonacoShortcut

Overrides

ShortcutHandler.generateShortcut

getMetaForAction()

getMetaForAction(id): ShortcutHandlerAction<MonacoShortcutHandler>;

Parameters

ParameterType
idstring

Returns

ShortcutHandlerAction<MonacoShortcutHandler>

Overrides

ShortcutHandler.getMetaForAction

getPossibleActions()

getPossibleActions(): ShortcutHandlerAction<MonacoShortcutHandler>[];

Returns

ShortcutHandlerAction<MonacoShortcutHandler>[]

Overrides

ShortcutHandler.getPossibleActions

getShortcutKeys()

getShortcutKeys(item, primary): ShortcutKey[];

Parameters

ParameterType
itemKeybinding
primaryboolean

Returns

ShortcutKey[]


getShortcuts()

getShortcuts(): MonacoShortcut[];

Returns

MonacoShortcut[]

Inherited from

ShortcutHandler.getShortcuts

getShortcutsForAction()

getShortcutsForAction(action): MonacoShortcut[];

Parameters

ParameterType
actionShortcutHandlerAction

Returns

MonacoShortcut[]

Inherited from

ShortcutHandler.getShortcutsForAction

init()

init(): Promise<void>;

Returns

Promise<void>

Inherited from

ShortcutHandler.init

reset()

reset(): Promise<void>;

Returns

Promise<void>

Inherited from

ShortcutHandler.reset

save()

save(): void;

Returns

void

Inherited from

ShortcutHandler.save

serialize()

serialize(): ShortcutHandlerSerialized;

Returns

ShortcutHandlerSerialized

Inherited from

ShortcutHandler.serialize

updateOptions()

updateOptions(options): void;

Parameters

ParameterType
optionsPartial<T>

Returns

void

Inherited from

ShortcutHandler.updateOptions

v2Patch()

v2Patch(data): ShortcutHandlerSerialized;

Parameters

ParameterType
dataShortcutHandlerSerialized

Returns

ShortcutHandlerSerialized

Inherited from

ShortcutHandler.v2Patch

waitForReady()

waitForReady(): Promise<MonacoShortcutHandler>;

Returns

Promise<MonacoShortcutHandler>

Inherited from

ShortcutHandler.waitForReady