pub struct Keystroke {
pub modifiers: Modifiers,
pub key: Key,
pub key_char: Option<String>,
}Expand description
A single key press with modifiers, e.g. ctrl-shift-p.
Fields§
§modifiers: Modifiers§key: Key§key_char: Option<String>The text this key press produces with modifiers applied (e.g. "?" for
shift-/), if any.
Implementations§
Trait Implementations§
impl Eq for Keystroke
impl StructuralPartialEq for Keystroke
Auto Trait Implementations§
impl Freeze for Keystroke
impl RefUnwindSafe for Keystroke
impl Send for Keystroke
impl Sync for Keystroke
impl Unpin for Keystroke
impl UnsafeUnpin for Keystroke
impl UnwindSafe for Keystroke
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