pub struct KeyEvent {
pub code: KeyCode,
pub kind: KeyEventKind,
pub mods: KeyModifiers,
}
Expand description
A key event.
Fields
code: KeyCode
Key itself.
kind: KeyEventKind
Kind of event, ie: release, press, or repeat
mods: KeyModifiers
Key modifiers, ie: shift, control, alt
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for KeyEvent
impl Send for KeyEvent
impl Sync for KeyEvent
impl Unpin for KeyEvent
impl UnwindSafe for KeyEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more