1681-engine / index / KeyChord
Interface: KeyChord ​
Defined in: src/input/keyChord.ts:6
A key binding with modifiers: Shift+Tab, Ctrl+KeyS, Ctrl+Shift+KeyZ. The last part is the key's KeyboardEvent.code; before it, any of Shift, Ctrl, Alt, Meta, either side of the keyboard counting. A chord matches while its key and every modifier it names are held; modifiers it does not name are not looked at.
Properties ​
code ​
ts
code: string;Defined in: src/input/keyChord.ts:7
modifiers ​
ts
modifiers: readonly readonly [string, string][];Defined in: src/input/keyChord.ts:9
The modifiers' key codes, each a pair: either one held counts.