pub enum KeyMatch {
None,
Fire(u32),
Held,
Notify(u32),
}Expand description
What a key does with a Keymap (Keymap::find).
Variants§
None
No binding: the key goes on as if there were no keymap.
Fire(u32)
It fires binding id: the platform consumes the key and reports it
(crate::EventKind::KeyCommand).
Held
An auto-repeat of a held key whose binding fires once: the platform consumes it and reports nothing.
Notify(u32)
It fires binding id, which passes the key through
(KeyBinding::pass_through): the platform reports it
(crate::EventKind::KeyCommand) and lets the key go on as if there
were no keymap (Tab moves the focus after the report).
Implementations§
Trait Implementations§
impl Copy for KeyMatch
impl Eq for KeyMatch
impl StructuralPartialEq for KeyMatch
Auto Trait Implementations§
impl Forget for KeyMatch
impl Freeze for KeyMatch
impl Move for KeyMatch
impl RefUnwindSafe for KeyMatch
impl Send for KeyMatch
impl Sync for KeyMatch
impl Unpin for KeyMatch
impl UnsafeUnpin for KeyMatch
impl UnwindSafe for KeyMatch
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