Shortcut<H>
Extends
BaseObserver<ShortcutListener>
Type Parameters
| Type Parameter | Default type |
|---|---|
H extends ShortcutHandler | ShortcutHandler<any> |
Constructors
Constructor
new Shortcut<H>(action): Shortcut<H>;
Parameters
| Parameter | Type |
|---|---|
action | ShortcutHandlerAction<H> |
Returns
Shortcut<H>
Overrides
BaseObserver<ShortcutListener>.constructor
Properties
| Property | Type |
|---|---|
action | ShortcutHandlerAction<H> |
enabled | boolean |
Accessors
chord
Methods
delete()
delete(): void;
Returns
void
deserialize()
deserialize(data): void;
Parameters
| Parameter | Type |
|---|---|
data | ShortcutSerialized |
Returns
void
dispose()
abstract dispose(): any;
Returns
any
enable()
enable(enabled): void;
Parameters
| Parameter | Type |
|---|---|
enabled | boolean |
Returns
void
serialize()
serialize(): ShortcutSerialized;
Returns
setChord()
setChord(chord, fire?): void;
Parameters
| Parameter | Type | Default value |
|---|---|---|
chord | ShortcutChord | undefined |
fire | boolean | true |
Returns
void