pub struct Modifiers {
pub shift: bool,
pub primary: bool,
pub alt: bool,
}Expand description
The keyboard modifiers held at an interaction, queryable ambiently
(Toolkit::modifiers): primary is the platform’s command key (⌘ on Apple platforms,
Ctrl elsewhere, the same convention Shortcut::primary uses). Touch-only backends
answer all-false.
Fields§
§shift: bool§primary: bool§alt: boolTrait Implementations§
impl Copy for Modifiers
impl Eq for Modifiers
impl StructuralPartialEq for Modifiers
Auto Trait Implementations§
impl Freeze for Modifiers
impl RefUnwindSafe for Modifiers
impl Send for Modifiers
impl Sync for Modifiers
impl Unpin for Modifiers
impl UnsafeUnpin 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