pub struct KeyCombo {
pub code: KeyCode,
pub modifiers: Modifiers,
}Expand description
A single key press with its modifiers (Ctrl+x, Shift+Tab, F12, g).
Combos are normalized so that Shift+a, A, and a terminal that reports
Char('A') with the Shift bit all compare equal: alphabetic characters
are stored lowercase with Modifiers::SHIFT set.
Fields§
§code: KeyCodeThe key.
modifiers: ModifiersModifier keys held.
Implementations§
Trait Implementations§
impl Copy for KeyCombo
impl Eq for KeyCombo
impl StructuralPartialEq for KeyCombo
Auto Trait Implementations§
impl Freeze for KeyCombo
impl RefUnwindSafe for KeyCombo
impl Send for KeyCombo
impl Sync for KeyCombo
impl Unpin for KeyCombo
impl UnsafeUnpin for KeyCombo
impl UnwindSafe for KeyCombo
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