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: bool
true
if the control key is pressed, `false otherwise.
alt: bool
true
if the alt key is pressed, `false otherwise.
shift: bool
true
if the shift key is pressed, `false otherwise.
logo: bool
true
if the windows/super/command key is pressed, `false otherwise.
command: bool
true
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