Skip to main content

Module key_code

Module key_code 

Expand description

A key’s place on the keyboard, named as the DOM names it (KeyboardEvent.code), for the keys whose meaning a layout changes: the letters, digits and punctuation. Named keys (Enter, the arrows) mean the same on every layout and travel by name alone.

Functions§

dom_code
The DOM code of the key pressed, when it is one whose meaning the layout decides.
known
Whether code is one dom_code gives.