A concrete implementation of IKeyboardLayout based on keycodes.
The namespace for the
KeycodeLayout class statics.
keyCode property of a
'keydown' event is a browser and OS
specific representation of the physical key (not character) which
was pressed on a keyboard. While not the most convenient API, it
is currently the only one which works reliably on all browsers.
This class accepts a user-defined mapping of keycode to key, which allows for reliable shortcuts tailored to the user's system.
A type alias for a keycode map.
A type alias for a key set.
The human readable name of the layout.
Test whether the given key is a modifier key.
The user provided key.
true if the key is a modifier key,
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,
Get the key for a
The event object for a
The associated key value, or an empty string if the event does not represent a valid primary key.
Get an array of the key values supported by the layout.
A new array of the supported key values.
Convert array of keys to a key set.
The array that needs to be converted
A set of the keys in the array.
Generated using TypeDoc