Struct
Modifiers
pub struct Modifiers(/* private field */);The modifier keys held with a key.
Methods
#pub fn shift(self) -> bool
#pub fn ctrl(self) -> bool
#pub fn alt(self) -> bool
Alt, Option on macOS.
#pub fn meta(self) -> bool
Cmd on macOS, the Windows key elsewhere.
#pub fn primary(self) -> bool
Returns whether the modifier of the platform’s shortcuts is held (Cmd on macOS, Ctrl elsewhere). Ctrl+W on Windows and Linux and Cmd+W on macOS both have it.
#pub fn none(self) -> bool
Whether no modifier is held (Shift included).