pub struct Shortcut {
pub key: Key,
pub modifiers: Modifiers,
}Expand description
A keyboard shortcut (key + modifiers).
Fields§
§key: KeyThe key.
modifiers: ModifiersModifier keys.
Implementations§
Source§impl Shortcut
impl Shortcut
pub const CUT: Shortcut
pub const PASTE: Shortcut
pub const UNDO: Shortcut
pub const REDO: Shortcut
pub const SAVE: Shortcut
pub const SELECT_ALL: Shortcut
pub const FIND: Shortcut
pub const ESCAPE: Shortcut
pub const ENTER: Shortcut
pub const TAB: Shortcut
pub const DELETE: Shortcut
pub const BACKSPACE: Shortcut
Sourcepub const fn ctrl_shift(key: Key) -> Shortcut
pub const fn ctrl_shift(key: Key) -> Shortcut
Create a shortcut with Ctrl+Shift modifiers.
Trait Implementations§
impl Copy for Shortcut
impl Eq for Shortcut
impl StructuralPartialEq for Shortcut
Auto Trait Implementations§
impl Freeze for Shortcut
impl RefUnwindSafe for Shortcut
impl Send for Shortcut
impl Sync for Shortcut
impl Unpin for Shortcut
impl UnsafeUnpin for Shortcut
impl UnwindSafe for Shortcut
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.