pub struct KeyEventModifiers {
pub alt: bool,
pub ctrl: bool,
pub meta: bool,
pub shift: bool,
}Expand description
Modifiers that can be pressed with a key.
Fields§
§alt: boolWhether or not an ALT key is down
ctrl: boolWhether or not a Control key is down
meta: boolWhether or not a meta key (Command-key on Mac, Windows-key on Win) is down
shift: boolWhether or not a Shift key is down
Auto Trait Implementations§
impl Freeze for KeyEventModifiers
impl RefUnwindSafe for KeyEventModifiers
impl Send for KeyEventModifiers
impl Sync for KeyEventModifiers
impl Unpin for KeyEventModifiers
impl UnwindSafe for KeyEventModifiers
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