Skip to main content

Module event

Module event 

Source
Expand description

Terminal input events.

This module defines the event types that SLT delivers to your UI closure each frame: keyboard, mouse, resize, paste, and focus events. In most cases you’ll use the convenience methods on crate::Context (e.g., Context::key, Context::mouse_down) instead of matching on these types directly.

Structs§

KeyEvent
A keyboard event with key code and modifiers.
KeyModifiers
Modifier keys held during a key press.
MouseEvent
A mouse event with position and kind.

Enums§

Event
A terminal input event.
KeyCode
Key identifier.
KeyEventKind
The type of key event.
MouseButton
Mouse button identifier.
MouseKind
The type of mouse event.