cushy

Trait ModifiersStateExt

Source
pub trait ModifiersStateExt {
    const PRIMARY: Self;
}
Expand description

Helper constants for [ModifiersState]

Required Associated Constants§

Source

const PRIMARY: Self

The modifier key used for shortcuts.

For Apple based platforms, this is [ModifiersState::SUPER]. This corresponds to the Apple/Command key.

For all other platforms, this is [ModifiersState::CONTROL].

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ModifiersStateExt for ModifiersState

Source§

const PRIMARY: Self = Self::CONTROL

Implementors§