pub struct Modifiers {
pub ctrl: bool,
pub alt: bool,
pub shift: bool,
pub logo: bool,
pub command: bool,
}Expand description
A set of modifiers
Fields§
§ctrl: booltrue if the control key is pressed, `false otherwise.
alt: booltrue if the alt key is pressed, `false otherwise.
shift: booltrue if the shift key is pressed, `false otherwise.
logo: booltrue if the windows/super/command key is pressed, `false otherwise.
command: booltrue if the primary key combination key is presesed, false otherwise.
This is command on macos, control on other OS’es.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Modifiers
impl RefUnwindSafe for Modifiers
impl Send for Modifiers
impl Sync for Modifiers
impl Unpin for Modifiers
impl UnwindSafe for Modifiers
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