Readonly nameThe human readable name of the layout.
This value is used primarily for display and debugging purposes.
Test whether the given key is a modifier key.
true if the key is a modifier key, false otherwise.
This is necessary so that we don't process modifier keys pressed in the middle of the key sequence. E.g. "Shift C Ctrl P" is actually 4 keydown events: "Shift", "Shift P", "Ctrl", "Ctrl P", and events for "Shift" and "Ctrl" should be ignored.
The user provided key.
Get an array of all key values supported by the layout.
A new array of the supported key values.
This can be useful for authoring tools and debugging, when it's necessary to know which keys are available for shortcut use.
Generated using TypeDoc
An object which represents an abstract keyboard layout.