Struct sixtyfps_corelib::input::KeyEvent
source · [−]#[repr(C)]pub struct KeyEvent {
pub modifiers: KeyboardModifiers,
pub text: SharedString,
pub event_type: KeyEventType,
}
Expand description
Represents a key event sent by the windowing system.
Fields
modifiers: KeyboardModifiers
The keyboard modifiers active at the time of the key press event.
text: SharedString
The unicode representation of the key pressed.
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