pub struct KeyDownEvent {
pub keystroke: Keystroke,
pub is_held: bool,
pub prefer_character_input: bool,
}Expand description
The key down event equivalent for the platform.
Fields§
§keystroke: KeystrokeThe keystroke that was generated.
is_held: boolWhether the key is currently held down.
prefer_character_input: boolWhether to prefer character input over keybindings for this keystroke. In some cases, like AltGr on Windows, modifiers are significant for character input.
Trait Implementations§
Source§impl Clone for KeyDownEvent
impl Clone for KeyDownEvent
Source§impl Debug for KeyDownEvent
impl Debug for KeyDownEvent
impl Eq for KeyDownEvent
Source§impl PartialEq for KeyDownEvent
impl PartialEq for KeyDownEvent
impl StructuralPartialEq for KeyDownEvent
Auto Trait Implementations§
impl Freeze for KeyDownEvent
impl RefUnwindSafe for KeyDownEvent
impl Send for KeyDownEvent
impl Sync for KeyDownEvent
impl Unpin for KeyDownEvent
impl UnsafeUnpin for KeyDownEvent
impl UnwindSafe for KeyDownEvent
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.