Skip to main content

Module key

Module key 

Source
Expand description

Cleanroom Rust port of upstream Go source file: key.go Upstream Target Tag / Version: v2.0.8

# Key Messages & Events

Key structures (Key, KeyPressMsg, KeyReleaseMsg), modifiers (KeyMod), and key symbol constants.

Structs§

Key
Key represents a Key press or release event in v2.0.8.
KeyMod
KeyMod bitflags representing modifier keys (ctrl, alt, shift, meta, hyper, super).
KeyPressMsg
KeyPressMsg represents a key press message.
KeyReleaseMsg
KeyReleaseMsg represents a key release message.

Enums§

KeyMsg
KeyMsg trait/enum abstraction covering KeyPressMsg and KeyReleaseMsg.

Constants§

KEY_BACKSPACE
KeyBackspace symbol.
KEY_DOWN
KeyDown symbol.
KEY_END
KeyEnd symbol.
KEY_ENTER
KeyEnter symbol.
KEY_ESCAPE
KeyEscape symbol.
KEY_HOME
KeyHome symbol.
KEY_LEFT
KeyLeft symbol.
KEY_PG_DOWN
KeyPgDown symbol.
KEY_PG_UP
KeyPgUp symbol.
KEY_RIGHT
KeyRight symbol.
KEY_SPACE
KeySpace symbol.
KEY_TAB
KeyTab symbol.
KEY_UP
Special key symbols.