Struct smithay_client_toolkit::seat::keyboard::ModifiersState [−][src]
pub struct ModifiersState {
pub ctrl: bool,
pub alt: bool,
pub shift: bool,
pub caps_lock: bool,
pub logo: bool,
pub num_lock: bool,
}Expand description
Represents the current state of the keyboard modifiers
Each field of this struct represents a modifier and is true if this modifier is active.
For some modifiers, this means that the key is currently pressed, others are toggled (like caps lock).
Fields
ctrl: boolThe “control” key
alt: boolThe “alt” key
shift: boolThe “shift” key
caps_lock: boolThe “Caps lock” key
logo: boolThe “logo” key
Also known as the “windows” key on most keyboards
num_lock: boolThe “Num lock” key
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for ModifiersState
impl Send for ModifiersState
impl Sync for ModifiersState
impl Unpin for ModifiersState
impl UnwindSafe for ModifiersState
Blanket Implementations
Mutably borrows from an owned value. Read more
