The human readable name of the layout.
This value is used primarily for display and debugging purposes.
Test whether the given key is a valid value for the layout.
The user provided key to test for validity.
true
if the key is valid, false
otherwise.
Get the key for a 'keydown'
event.
The event object for a 'keydown'
event.
The associated key value, or an empty string if the event does not represent a valid primary 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.