Skip to main content

Module chord

Module chord 

Source
Expand description

A keystroke as the command registry names it.

Structsยง

Held ๐Ÿ”’
What the browser says is down beside the key.

Functionsยง

character_key ๐Ÿ”’
chord_of
The chord event presses, or None for a keystroke nothing binds.
key_of ๐Ÿ”’
A KeyboardEvent.key value as a bindable key. The value is what the layout produced, so a shifted digit arrives as its symbol and a letter in either case.
modifiers_of ๐Ÿ”’
Which bound modifier set is held, or None for one the table does not bind at all: Shift without the command modifier binds nothing, so a shifted letter is left to the browser rather than read as the bare letter.
shift_is_a_modifier_of ๐Ÿ”’
Shift is a modifier of a letter, which arrives as the same letter either way, and spent on anything else: a shifted = arrives as +, its own key.