pub struct Modifiers {
pub shift: bool,
pub ctrl: bool,
pub alt: bool,
pub meta: bool,
}Expand description
Modifier keys held at the time of an event.
meta is the platform-specific “command” key: Cmd on macOS, Super /
Windows key on Linux, Windows key on Windows. Widgets that want
portable clipboard / select-all / undo shortcuts should treat
ctrl || meta as the “command” modifier so both Windows-style
Ctrl+C and Mac-style Cmd+C work without branching on the host OS.
Fields§
§shift: bool§ctrl: bool§alt: bool§meta: 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