Skip to main content

Module keymap

Module keymap 

Source
Expand description

Keys as the X server numbers them. The pane sends a key’s DOM code (the physical key: KeyA, ArrowLeft); the X server under Xvfb numbers keys as Linux does plus 8. Layout is US: a key is the key at that place, not the letter a layout would give it.

Constants§

ALT
CONTROL
SCANCODES 🔒
DOM key codes and the Linux scancodes of those keys.
SHIFT
The keycode of Left Shift, and of Left Control and Left Alt, for the keys srv presses itself (an address typed in, a paste).

Functions§

ascii
The key (and whether Shift is held) that types c on a US keyboard, for the characters of an address or a short paste.
keycode
The X keycode of a DOM key code, or none for a key this prototype does not know.