Enum druid_shell::SysMods [−][src]
pub enum SysMods {
None,
Shift,
Cmd,
AltCmd,
CmdShift,
AltCmdShift,
}
Expand description
A platform-agnostic representation of keyboard modifiers, for command handling.
This does one thing: it allows specifying hotkeys that use the Command key on macOS, but use the Ctrl key on other platforms.
Variants
Command on macOS, and Ctrl on windows/linux
Command + Alt on macOS, Ctrl + Alt on windows/linux
Command + Shift on macOS, Ctrl + Shift on windows/linux
Command + Alt + Shift on macOS, Ctrl + Alt + Shift on windows/linux
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SysMods
impl UnwindSafe for SysMods
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn round_from(x: T) -> T
pub fn round_from(x: T) -> T
Performs the conversion.
pub fn round_into(self) -> U
pub fn round_into(self) -> U
Performs the conversion.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more