pub struct KeyUpEvent {
pub physical_key: PhysicalKeyboardKey,
pub logical_key: LogicalKeyboardKey,
pub time_stamp: Duration,
pub device_type: KeyEventDeviceType,
pub synthesized: bool,
}Expand description
An event indicating that the user has released a key on the keyboard.
See also:
KeyDownEvent, a key event representing the user pressing a key.KeyRepeatEvent, a key event representing the user holding a key, causing repeated events.HardwareKeyboard, which produces this event.
Fields§
§physical_key: PhysicalKeyboardKey§logical_key: LogicalKeyboardKey§time_stamp: DurationSee KeyEvent::time_stamp.
device_type: KeyEventDeviceType§synthesized: boolImplementations§
Source§impl KeyUpEvent
impl KeyUpEvent
Sourcepub fn new(
physical_key: PhysicalKeyboardKey,
logical_key: LogicalKeyboardKey,
time_stamp: Duration,
) -> KeyUpEvent
pub fn new( physical_key: PhysicalKeyboardKey, logical_key: LogicalKeyboardKey, time_stamp: Duration, ) -> KeyUpEvent
Creates a key event that represents the user releasing a key.
Sourcepub fn device_type(self, device_type: KeyEventDeviceType) -> KeyUpEvent
pub fn device_type(self, device_type: KeyEventDeviceType) -> KeyUpEvent
Dart KeyUpEvent(deviceType:).
Sourcepub fn synthesized(self, synthesized: bool) -> KeyUpEvent
pub fn synthesized(self, synthesized: bool) -> KeyUpEvent
Dart KeyUpEvent(synthesized:).
Trait Implementations§
Source§impl Clone for KeyUpEvent
impl Clone for KeyUpEvent
Source§impl Debug for KeyUpEvent
impl Debug for KeyUpEvent
impl Eq for KeyUpEvent
Source§impl From<KeyUpEvent> for KeyEvent
impl From<KeyUpEvent> for KeyEvent
Source§fn from(event: KeyUpEvent) -> KeyEvent
fn from(event: KeyUpEvent) -> KeyEvent
Converts to this type from the input type.
Source§impl PartialEq for KeyUpEvent
impl PartialEq for KeyUpEvent
impl StructuralPartialEq for KeyUpEvent
Auto Trait Implementations§
impl Freeze for KeyUpEvent
impl RefUnwindSafe for KeyUpEvent
impl Send for KeyUpEvent
impl Sync for KeyUpEvent
impl Unpin for KeyUpEvent
impl UnsafeUnpin for KeyUpEvent
impl UnwindSafe for KeyUpEvent
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.