Begin listening to keyboard events.
Report whether a modifier in KeyboardManager.MODIFIER_KEYS is currently actively depressed.
A modifier in MODIFIER_KEYS
Is this modifier key currently down (active)?
Emulate a key-up event for any currently down keys. When emulating, we go backwards such that combinations such as "CONTROL + S" emulate the "S" first in order to capture modifiers.
Options to configure behavior.
Input events do not fire with isComposing = false at the end of a composition event in Chrome See: https://github.com/w3c/uievents/issues/202
Processes a keyboard event context, checking it against registered keybinding actions
The keyboard event context
Additional options to configure behavior.
Release any down keys when focusing a form element.
The focus event.
Reset tracking for which keys are in the down and released states
Handle a key press into the down position
The originating keyboard event
A flag for whether the key is down or up
Emulates a key being pressed, triggering the Keyboard event workflow.
If True, emulates the keyup
Event. Else, the keydown
event
The KeyboardEvent#code which is being pressed
Additional options to configure behavior.
Format a KeyboardEvent#code into a displayed string.
The input code
The displayed string for this code
Get a standardized keyboard context for a given event. Every individual keypress is uniquely identified using the KeyboardEvent#code property. A list of possible key codes is documented here: https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/code/code_values
The originating keypress event
A flag for whether the key is down or up
The standardized context of the event
Given a standardized pressed key, find all matching registered Keybind Actions.
A standardized keyboard event context
The matched Keybind Actions. May be empty.
Converts a Keyboard Context event into a string representation, such as "C" or "Control+C"
The standardized context of the event
If True, includes modifiers in the string representation
Test whether a keypress context matches the registration for a keybinding action
The keybinding action
The keyboard event context
Does the context match the action requirements?
Given a registered Keybinding Action, executes the action with a given event and context
The registered Keybinding action to execute
The gathered context of the event
Returns true if the keybind was consumed
The set of key codes which are currently depressed (down)
The set of movement keys which were recently pressed
Allowed modifier keys
Track which KeyboardEvent#code presses associate with each modifier
Key codes which are "protected" and should not be used because they are reserved for browser-level actions.
The OS-specific string display for what their Command key is
An special mapping of how special KeyboardEvent#code values should map to displayed strings or symbols. Values in this configuration object override any other display formatting rules which may be applied.
Test whether an HTMLElement currently has focus. If so we normally don't want to process keybinding actions.
A set of helpers and management functions for dealing with user input from keyboard events. https://keycode.info/