EKEY produces an abstract cell type for a keyboard
event (e.g., a keyboard scan code).
EKEY>FKEY checks
if such an event corresponds to a special (non-graphic) key
press, and if so, returns a code for the special key press.
The encoding of special keys (returned by
EKEY>FKEY)
may be different from the encoding of these keys as keyboard
events (input to
EKEY>FKEY).
Typical Use:
The codes for the special keys are system-dependent, but this
standard provides words for getting the key codes for a number
of keys:
In addition, you can get codes for shifted variants of these
keys by
ORing with
K-SHIFT-MASK,
K-CTRL-MASK
and/or
K-ALT-MASK, e.g.
K-CTRL-MASK
K-ALT-MASK OR K-DELETE OR.
The masks for the shift keys are:
Note that not all of these keys are available on all systems, and not
all combinations of keys and shift keys are available. Therefore
programs should be written such that they continue to work (although
less conveniently or with less functionality) if these key combinations
cannot be produced.