pub struct DispatchKeyEventParams {Show 14 fields
pub event_type: KeyEventType,
pub modifiers: Option<i32>,
pub timestamp: Option<f64>,
pub text: Option<String>,
pub unmodified_text: Option<String>,
pub key_identifier: Option<String>,
pub code: Option<String>,
pub key: Option<String>,
pub windows_virtual_key_code: Option<i32>,
pub native_virtual_key_code: Option<i32>,
pub auto_repeat: Option<bool>,
pub is_keypad: Option<bool>,
pub is_system_key: Option<bool>,
pub commands: Option<Vec<String>>,
}Expand description
Parameters for Input.dispatchKeyEvent.
Fields§
§event_type: KeyEventTypeType of the key event.
modifiers: Option<i32>Bit field representing pressed modifier keys.
timestamp: Option<f64>Time at which the event occurred.
text: Option<String>Text as generated by processing a virtual key code.
unmodified_text: Option<String>Text that would have been generated without any modifiers.
key_identifier: Option<String>Unique key identifier.
code: Option<String>Unique DOM defined string value for each key.
key: Option<String>Unique DOM defined string value describing the meaning of the key.
windows_virtual_key_code: Option<i32>Windows virtual key code.
native_virtual_key_code: Option<i32>Native virtual key code.
auto_repeat: Option<bool>Whether the event was generated from auto repeat.
is_keypad: Option<bool>Whether the event was generated from the keypad.
is_system_key: Option<bool>Whether the event was a system key event.
commands: Option<Vec<String>>Editing commands to send with the event.
Implementations§
Trait Implementations§
Source§impl Clone for DispatchKeyEventParams
impl Clone for DispatchKeyEventParams
Source§fn clone(&self) -> DispatchKeyEventParams
fn clone(&self) -> DispatchKeyEventParams
Returns a duplicate 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 DispatchKeyEventParams
impl Debug for DispatchKeyEventParams
Auto Trait Implementations§
impl Freeze for DispatchKeyEventParams
impl RefUnwindSafe for DispatchKeyEventParams
impl Send for DispatchKeyEventParams
impl Sync for DispatchKeyEventParams
impl Unpin for DispatchKeyEventParams
impl UnwindSafe for DispatchKeyEventParams
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