Expand description
Canonical input/event types.
This module defines the standard event types used throughout ftui for
input handling. All events derive Clone, PartialEq, and Eq for
use in tests and pattern matching.
§Design Notes
- Mouse coordinates are 0-indexed (terminal is 1-indexed internally)
KeyEventKinddefaults toPresswhen not available from the terminalModifiersuse bitflags for easy combination- Clipboard events are optional and feature-gated in the future
Structs§
- Clipboard
Event - A clipboard event from OSC 52 response.
- KeyEvent
- A keyboard event.
- Modifiers
- Modifier keys that can be held during a key event.
- Mouse
Event - A mouse event.
- Paste
Event - A paste event from bracketed paste mode.
Enums§
- Clipboard
Source - The source of clipboard content.
- Event
- Canonical input event.
- KeyCode
- Key codes for keyboard events.
- KeyEvent
Kind - The type of key event.
- Mouse
Button - Mouse button identifiers.
- Mouse
Event Kind - The type of mouse event.