pub struct KeyInput {
pub key: KeyCode,
pub modifiers: Modifiers,
}Expand description
Key input received from the terminal.
Emitted by the input driver when a key is pressed. This is the low-level key event before any keybinding processing.
Fields§
§key: KeyCodeThe key code
modifiers: ModifiersActive modifiers (Ctrl, Alt, Shift)
Trait Implementations§
impl Eq for KeyInput
impl StructuralPartialEq for KeyInput
Auto Trait Implementations§
impl Freeze for KeyInput
impl RefUnwindSafe for KeyInput
impl Send for KeyInput
impl Sync for KeyInput
impl Unpin for KeyInput
impl UnsafeUnpin for KeyInput
impl UnwindSafe for KeyInput
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