pub struct KeyBinding {
pub key: Key,
pub modifiers: InputModifiers,
}Expand description
One key-plus-modifiers trigger.
Donor: oa::KeyBinding.
Fields§
§key: Key§modifiers: InputModifiersImplementations§
Source§impl KeyBinding
impl KeyBinding
Sourcepub fn matches(&self, event: &InputEvent) -> bool
pub fn matches(&self, event: &InputEvent) -> bool
Return whether event is a key-down matching key and modifiers exactly.
Trait Implementations§
Source§impl Clone for KeyBinding
impl Clone for KeyBinding
impl Copy for KeyBinding
Source§impl Debug for KeyBinding
impl Debug for KeyBinding
Source§impl Default for KeyBinding
impl Default for KeyBinding
impl Eq for KeyBinding
Source§impl PartialEq for KeyBinding
impl PartialEq for KeyBinding
impl StructuralPartialEq for KeyBinding
Auto Trait Implementations§
impl Forget for KeyBinding
impl Freeze for KeyBinding
impl Move for KeyBinding
impl RefUnwindSafe for KeyBinding
impl Send for KeyBinding
impl Sync for KeyBinding
impl Unpin for KeyBinding
impl UnsafeUnpin for KeyBinding
impl UnwindSafe for KeyBinding
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