Keyboard modifier keys (e.g. Shift, Alt, etc.).
Represents mouse buttons that could be pressed. These do not match the mouse
buttons from the MouseEvent (which are much lower).
This is so we can check for a combination of keyboard modifiers and mouse
buttons (e.g. Shift
+ Left Click).
Object with handlers that get fired based on the conditional checks.
A single Token
or a combination of Tokens which are joined via a
bitwise OR (|) operator.
An event from which a combination of Token
elements can be extracted.
Builder function for a ChordHandler
.
Input for chords, can be a single chord combination or an array of chord combinations.
Listener fired when a matching chord is found.
A Key
, Modifier
, or MouseButton
. This represents a
single element in a chord.
Condition passed to ChordHandler.when
.
Gets the display value for the specified chord
. If the chord is a combination
of multiple keys/buttons, the display value for each key/button is joined with
the specified joinSymbol
.
Fires the specified listener
if the specified combination of chords
were pressed/clicked from the specified event
.
Checks if one of the specified chords
combinations were pressed based on
the specified keyboard or mouse event
.
Checks if the specified key represents a printable character.
Checks if a printable character key was pressed (excluding any modifiers).
Numbers that correspond to the key codes of the keyboard. Note that these are not the same as the character codes and don't support international keyboards.