Struct sixtyfps_corelib::input::KeyEvent [−][src]
#[repr(C)]pub struct KeyEvent { pub text: SharedString, pub modifiers: KeyboardModifiers, pub event_type: KeyEventType, }
Expand description
Represents a key event sent by the windowing system.
Fields
text: SharedString
The unicode representation of the key pressed.
modifiers: KeyboardModifiers
The keyboard modifiers active at the time of the key press event.
event_type: KeyEventType
Indicates whether the key was pressed or released
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for KeyEvent
impl UnwindSafe for KeyEvent
Blanket Implementations
Mutably borrows from an owned value. Read more