Skip to main content

ShortcutChord

Constructors

Constructor

new ShortcutChord(primary?, secondary?): ShortcutChord;

Parameters

ParameterTypeDefault value
primaryShortcutKey[][]
secondaryShortcutKey[][]

Returns

ShortcutChord

Properties

PropertyType
primaryShortcutKey[]
secondaryShortcutKey[]
uuidstring

Methods

getAsArray()

getAsArray(): ShortcutKey[][];

Returns

ShortcutKey[][]


getShortcutKey()

getShortcutKey(type, primary?): ShortcutKey;

Parameters

ParameterTypeDefault value
typekeyTypeundefined
primarybooleantrue

Returns

ShortcutKey


hasSecondary()

hasSecondary(): boolean;

Returns

boolean


matches()

matches(primary?, secondary?): boolean;

Parameters

ParameterTypeDefault value
primaryShortcutKey[][]
secondaryShortcutKey[][]

Returns

boolean