Crate keyboard_types [] [src]

Contains types to define keyboard related events.

The naming and conventions follow the UI Events specification but this crate should be useful for anyone implementing keyboard input in a cross-platform way.

Structs

KeyEvent
Modifiers

Pressed modifier keys.

Enums

Code

Code is the physical position of a key.

Key

Key represents the meaning of a keypress.

Location

The location attribute contains an indication of the logical location of the key on the device.

State

Describes the state the key is in.

Constants

ALT
ALT_GRAPH
CAPS_LOCK
CONTROL
FN
FN_LOCK
HYPER
META
NUM_LOCK
SCROLL_LOCK
SHIFT
SUPER
SYMBOL
SYMBOL_LOCK