Skip to main content

MonacoShortcut

Extends

Constructors

Constructor

new MonacoShortcut(action): MonacoShortcut;

Parameters

ParameterType
actionShortcutHandlerAction<MonacoShortcutHandler>

Returns

MonacoShortcut

Inherited from

Shortcut<MonacoShortcutHandler>.constructor

Properties

PropertyTypeInherited from
actionShortcutHandlerAction<MonacoShortcutHandler>Shortcut.action
enabledbooleanShortcut.enabled

Accessors

chord

Inherited from

Shortcut.chord

Methods

delete()

delete(): void;

Returns

void

Inherited from

Shortcut.delete

deserialize()

deserialize(data): void;

Parameters

ParameterType
dataShortcutSerialized

Returns

void

Inherited from

Shortcut.deserialize

dispose()

dispose(): void;

Returns

void

Overrides

Shortcut.dispose

enable()

enable(enabled): void;

Parameters

ParameterType
enabledboolean

Returns

void

Inherited from

Shortcut.enable

getAsMonacoPrimitive()

getAsMonacoPrimitive(primary): any;

Parameters

ParameterType
primaryboolean

Returns

any


getMonacoStoreAction()

getMonacoStoreAction(): MonacoStoreAction;

Returns

MonacoStoreAction


serialize()

serialize(): ShortcutSerialized;

Returns

ShortcutSerialized

Inherited from

Shortcut.serialize

setChord()

setChord(chord, fire?): void;

Parameters

ParameterTypeDefault value
chordShortcutChordundefined
firebooleantrue

Returns

void

Overrides

Shortcut.setChord