ShortcutChord
Constructors
Constructor
new ShortcutChord(primary?, secondary?): ShortcutChord;
Parameters
| Parameter | Type | Default value |
|---|---|---|
primary | ShortcutKey[] | [] |
secondary | ShortcutKey[] | [] |
Returns
ShortcutChord
Properties
| Property | Type |
|---|---|
primary | ShortcutKey[] |
secondary | ShortcutKey[] |
uuid | string |
Methods
getAsArray()
getAsArray(): ShortcutKey[][];
Returns
ShortcutKey[][]
getShortcutKey()
getShortcutKey(type, primary?): ShortcutKey;
Parameters
| Parameter | Type | Default value |
|---|---|---|
type | keyType | undefined |
primary | boolean | true |
Returns
hasSecondary()
hasSecondary(): boolean;
Returns
boolean
matches()
matches(primary?, secondary?): boolean;
Parameters
| Parameter | Type | Default value |
|---|---|---|
primary | ShortcutKey[] | [] |
secondary | ShortcutKey[] | [] |
Returns
boolean