#[repr(C)]pub struct KeysInner {
pub key: SharedString,
pub modifiers: KeyboardModifiers,
pub ignore_shift: bool,
pub ignore_alt: bool,
}Expand description
Internal representation of the Keys type.
This is semver exempt and is only used to set up the native menu in the backends.
Fields§
§key: SharedStringThe key used to trigger the shortcut
Note: This is currently converted to lowercase when the shortcut is created!
modifiers: KeyboardModifiersKeyboardModifiers that need to be pressed for the shortcut to fire
ignore_shift: boolWhether to ignore shift state when matching the shortcut
ignore_alt: boolWhether to ignore alt state when matching the shortcut
Implementations§
Trait Implementations§
impl Eq for KeysInner
impl StructuralPartialEq for KeysInner
Auto Trait Implementations§
impl Freeze for KeysInner
impl RefUnwindSafe for KeysInner
impl Send for KeysInner
impl Sync for KeysInner
impl Unpin for KeysInner
impl UnsafeUnpin for KeysInner
impl UnwindSafe for KeysInner
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.