ShortcutStore
Extends
Constructors
Constructor
new ShortcutStore(): ShortcutStore;
Returns
ShortcutStore
Overrides
Properties
| Property | Type | Inherited from |
|---|---|---|
handlers | ShortcutHandler<Shortcut<ShortcutHandler<any, ShortcutHandlerOptions>>, ShortcutHandlerOptions>[] | - |
logger | Logger | AbstractStore.logger |
Accessors
dialogStore
initialized
Inherited from
name
Get Signature
get name(): string;
Returns
string
Inherited from
showKeyCommandDialog
Methods
getAllPossibleActions()
getAllPossibleActions(): PossibleShortcutAction[];
Returns
getAllShortcuts()
getAllShortcuts(): Shortcut<ShortcutHandler<any, ShortcutHandlerOptions>>[];
Returns
Shortcut<ShortcutHandler<any, ShortcutHandlerOptions>>[]
getControls()
getControls(): AbstractSetting<AbstractSettingOptions>[];
Returns
AbstractSetting<AbstractSettingOptions>[]
Inherited from
getExportedShortcutsURL()
getExportedShortcutsURL(): string;
Returns
string
getHandler()
getHandler<T>(key): T;
Type Parameters
| Type Parameter |
|---|
T extends ShortcutHandler<Shortcut<ShortcutHandler<any, ShortcutHandlerOptions>>, ShortcutHandlerOptions> |
Parameters
| Parameter | Type |
|---|---|
key | string |
Returns
T
importShortcuts()
importShortcuts(): Promise<boolean>;
Returns
Promise<boolean>
init()
init(): Promise<void>;
Returns
Promise<void>
Inherited from
isInitialized()
isInitialized(): boolean;
Returns
boolean
registerHandler()
registerHandler(handler): void;
Parameters
| Parameter | Type |
|---|---|
handler | ShortcutHandler |
Returns
void
reset()
reset(): Promise<void>;
Returns
Promise<void>
save()
save(): Promise<void>;
Returns
Promise<void>
setLogger()
setLogger(logger): void;
Parameters
| Parameter | Type |
|---|---|
logger | Logger |
Returns
void
Inherited from
showShortcutDialog()
showShortcutDialog(action): Promise<ShortcutChord>;
Parameters
| Parameter | Type |
|---|---|
action | ShortcutHandlerAction |
Returns
Promise<ShortcutChord>
waitForReady()
waitForReady(): Promise<void>;
Returns
Promise<void>