pub struct KeyboardEventArgs {
pub key: String,
pub modifiers: Vec<ModifierKey>,
pub is_repeat: bool,
}Expand description
Common properties in keyboard events.
Fields§
§key: StringPlatform-normalized key string.
modifiers: Vec<ModifierKey>Modifier keys active during the event.
is_repeat: boolWhether this event was generated by key-repeat.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KeyboardEventArgs
impl RefUnwindSafe for KeyboardEventArgs
impl Send for KeyboardEventArgs
impl Sync for KeyboardEventArgs
impl Unpin for KeyboardEventArgs
impl UnsafeUnpin for KeyboardEventArgs
impl UnwindSafe for KeyboardEventArgs
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<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
Source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.