Struct sixtyfps_corelib::input::KeyEvent [−][src]
#[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: KeyboardModifiersThe keyboard modifiers active at the time of the key press event.
text: SharedStringThe unicode representation of the key pressed.
event_type: KeyEventTypeIndicates 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