pub trait ModifiersExt {
    // Required methods
    fn command(&self) -> bool;
    fn alt(&self) -> bool;
    fn shift(&self) -> bool;
}
Expand description

An extension trait for [Modifiers] that adds platform-independent getters.

Required Methods§

source

fn command(&self) -> bool

Returns true if the Command (on macOS) or Ctrl (on any other platform) key is pressed.

source

fn alt(&self) -> bool

Returns true if the Alt (or Option on macOS) key is pressed.

source

fn shift(&self) -> bool

Returns true if the Shift key is pressed.

Implementations on Foreign Types§

source§

impl ModifiersExt for Modifiers

source§

fn command(&self) -> bool

source§

fn alt(&self) -> bool

source§

fn shift(&self) -> bool

Implementors§