MonacoShortcutHandler
Extends
ShortcutHandler<MonacoShortcut>
Constructors
Constructor
new MonacoShortcutHandler(options2): MonacoShortcutHandler;
Parameters
| Parameter | Type |
|---|---|
options2 | MonacoShortcutHandlerOptions |
Returns
MonacoShortcutHandler
Overrides
ShortcutHandler<MonacoShortcut>.constructor
Properties
| Property | Type | Inherited from |
|---|---|---|
deserialized | boolean | ShortcutHandler.deserialized |
logger | Logger | ShortcutHandler.logger |
options | ShortcutHandlerOptions | ShortcutHandler.options |
Accessors
initialized
Inherited from
ShortcutHandler.initialized
store
Get Signature
get store(): MonacoKeybindingStore;
Returns
MonacoKeybindingStore
Methods
addShortcut()
addShortcut(shortcut): void;
Parameters
| Parameter | Type |
|---|---|
shortcut | MonacoShortcut |
Returns
void
Inherited from
ShortcutHandler.addShortcut
deserialize()
deserialize(data): Promise<void>;
Parameters
| Parameter | Type |
|---|---|
data | ShortcutHandlerSerialized |
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
| Parameter | Type |
|---|---|
data | any |
Returns
void
Inherited from
ShortcutHandler.doDeserialize
doSerialize()
doSerialize(): any;
Returns
any
Inherited from
ShortcutHandler.doSerialize
generateShortcut()
generateShortcut(data): MonacoShortcut;
Parameters
| Parameter | Type |
|---|---|
data | ShortcutHandlerAction<MonacoShortcutHandler> |
Returns
Overrides
ShortcutHandler.generateShortcut
getMetaForAction()
getMetaForAction(id): ShortcutHandlerAction<MonacoShortcutHandler>;
Parameters
| Parameter | Type |
|---|---|
id | string |
Returns
ShortcutHandlerAction<MonacoShortcutHandler>
Overrides
ShortcutHandler.getMetaForAction
getPossibleActions()
getPossibleActions(): ShortcutHandlerAction<MonacoShortcutHandler>[];
Returns
ShortcutHandlerAction<MonacoShortcutHandler>[]
Overrides
ShortcutHandler.getPossibleActions
getShortcutKeys()
getShortcutKeys(item, primary): ShortcutKey[];
Parameters
| Parameter | Type |
|---|---|
item | Keybinding |
primary | boolean |
Returns
ShortcutKey[]
getShortcuts()
getShortcuts(): MonacoShortcut[];
Returns
Inherited from
ShortcutHandler.getShortcuts
getShortcutsForAction()
getShortcutsForAction(action): MonacoShortcut[];
Parameters
| Parameter | Type |
|---|---|
action | ShortcutHandlerAction |
Returns
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
| Parameter | Type |
|---|---|
options | Partial<T> |
Returns
void
Inherited from
ShortcutHandler.updateOptions
v2Patch()
v2Patch(data): ShortcutHandlerSerialized;
Parameters
| Parameter | Type |
|---|---|
data | ShortcutHandlerSerialized |
Returns
ShortcutHandlerSerialized
Inherited from
ShortcutHandler.v2Patch
waitForReady()
waitForReady(): Promise<MonacoShortcutHandler>;
Returns
Promise<MonacoShortcutHandler>
Inherited from
ShortcutHandler.waitForReady