Enum wry::application::accelerator::SysMods [−][src]
#[non_exhaustive]
pub enum SysMods {
None,
Shift,
Cmd,
AltCmd,
CmdShift,
AltCmdShift,
}
Expand description
Represents the platform-agnostic keyboard modifiers, for command handling.
This does one thing: it allows specifying accelerators that use the Command key on macOS, but use the Ctrl key on other platforms.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future 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
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for SysMods
impl UnwindSafe for SysMods
Blanket Implementations
Mutably borrows from an owned value. Read more