pub struct KeyEvent {
pub virtual_key: u16,
pub scan_code: u16,
pub modifiers: KeyModifiers,
pub repeat_count: u16,
}Expand description
Keyboard event information.
Fields§
§virtual_key: u16Virtual key code
scan_code: u16Scan code
modifiers: KeyModifiersModifier keys
repeat_count: u16Repeat count
Trait Implementations§
impl Copy for KeyEvent
impl Eq for KeyEvent
impl StructuralPartialEq for KeyEvent
Auto Trait Implementations§
impl Freeze for KeyEvent
impl RefUnwindSafe for KeyEvent
impl Send for KeyEvent
impl Sync for KeyEvent
impl Unpin for KeyEvent
impl UnwindSafe for KeyEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more