Struct wezterm_input_types::RawKeyEvent
source · pub struct RawKeyEvent {
pub key: KeyCode,
pub modifiers: Modifiers,
pub leds: KeyboardLedStatus,
pub phys_code: Option<PhysKeyCode>,
pub raw_code: u32,
pub scan_code: u32,
pub repeat_count: u16,
pub key_is_down: bool,
pub handled: Handled,
}
Expand description
A key event prior to any dead key or IME composition
Fields§
§key: KeyCode
§modifiers: Modifiers
§leds: KeyboardLedStatus
§phys_code: Option<PhysKeyCode>
The physical location of the key on an ANSI-Standard US layout
raw_code: u32
The OS and hardware dependent key code for the key
scan_code: u32
The other OS and hardware dependent key code for the key
repeat_count: u16
How many times this key repeats
key_is_down: bool
If true, this is a key down rather than a key up event
handled: Handled
Implementations§
source§impl RawKeyEvent
impl RawKeyEvent
sourcepub fn set_handled(&self)
pub fn set_handled(&self)
Mark the event as handled, in order to prevent additional processing.
Trait Implementations§
source§impl Clone for RawKeyEvent
impl Clone for RawKeyEvent
source§fn clone(&self) -> RawKeyEvent
fn clone(&self) -> RawKeyEvent
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RawKeyEvent
impl Debug for RawKeyEvent
source§impl PartialEq for RawKeyEvent
impl PartialEq for RawKeyEvent
source§fn eq(&self, other: &RawKeyEvent) -> bool
fn eq(&self, other: &RawKeyEvent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for RawKeyEvent
impl StructuralEq for RawKeyEvent
impl StructuralPartialEq for RawKeyEvent
Auto Trait Implementations§
impl RefUnwindSafe for RawKeyEvent
impl Send for RawKeyEvent
impl Sync for RawKeyEvent
impl Unpin for RawKeyEvent
impl UnwindSafe for RawKeyEvent
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