pub enum KeyMod {
Alt,
Ctrl,
Shift,
AltCtrl,
AltShift,
CtrlShift,
AltCtrlShift,
}
Expand description
Key combinations for keys besides Alt(char) and Ctrl(char) in
Variants§
Alt
Alt modifier key
Ctrl
Ctrl modifier key
Note that certain keys may not be modifiable with ctrl
, due to limitations of terminals.
Shift
Shift modifier key
Note that capital letters do not note the shift
modifier.
AltCtrl
Alt + Ctrl
AltShift
Alt + Shift
CtrlShift
Ctrl + Shift
AltCtrlShift
Alt + Ctrl + Shift
Trait Implementations§
impl Copy for KeyMod
impl Eq for KeyMod
impl StructuralPartialEq for KeyMod
Auto Trait Implementations§
impl Freeze for KeyMod
impl RefUnwindSafe for KeyMod
impl Send for KeyMod
impl Sync for KeyMod
impl Unpin for KeyMod
impl UnwindSafe for KeyMod
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