Struct chrome_remote_interface_model::input::DispatchKeyEventCommand [−][src]
Input
only.Dispatches a key event to the page.
Implementations
impl DispatchKeyEventCommand
[src]
pub fn builder() -> DispatchKeyEventCommandBuilder
[src]
pub fn type(&self) -> &DispatchKeyEventCommandType
[src]
Type of the key event.
pub fn modifiers(&self) -> Option<&u32>
[src]
Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0).
pub fn timestamp(&self) -> Option<&TimeSinceEpoch>
[src]
Time at which the event occurred.
pub fn text(&self) -> Option<&String>
[src]
Text as generated by processing a virtual key code with a keyboard layout. Not needed for
for keyUp
and rawKeyDown
events (default: "")
pub fn unmodified_text(&self) -> Option<&String>
[src]
Text that would have been generated by the keyboard if no modifiers were pressed (except for shift). Useful for shortcut (accelerator) key handling (default: "").
pub fn key_identifier(&self) -> Option<&String>
[src]
Unique key identifier (e.g., 'U+0041') (default: "").
pub fn code(&self) -> Option<&String>
[src]
Unique DOM defined string value for each physical key (e.g., 'KeyA') (default: "").
pub fn key(&self) -> Option<&String>
[src]
Unique DOM defined string value describing the meaning of the key in the context of active modifiers, keyboard layout, etc (e.g., 'AltGr') (default: "").
pub fn windows_virtual_key_code(&self) -> Option<&u32>
[src]
Windows virtual key code (default: 0).
pub fn native_virtual_key_code(&self) -> Option<&u32>
[src]
Native virtual key code (default: 0).
pub fn auto_repeat(&self) -> Option<&bool>
[src]
Whether the event was generated from auto repeat (default: false).
pub fn is_keypad(&self) -> Option<&bool>
[src]
Whether the event was generated from the keypad (default: false).
pub fn is_system_key(&self) -> Option<&bool>
[src]
Whether the event was a system key event (default: false).
pub fn location(&self) -> Option<&u32>
[src]
Whether the event was from the left or right side of the keyboard. 1=Left, 2=Right (default: 0).
pub fn commands(&self) -> Option<&Vec<String>>
[src]
experimental
only.Editing commands to send with the key event (e.g., 'selectAll') (default: []).
These are related to but not equal the command names used in document.execCommand
and NSStandardKeyBindingResponding.
See https://source.chromium.org/chromium/chromium/src/+/master:third_party/blink/renderer/core/editing/commands/editor_command_names.h for valid command names.
Trait Implementations
impl Clone for DispatchKeyEventCommand
[src]
fn clone(&self) -> DispatchKeyEventCommand
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Command for DispatchKeyEventCommand
[src]
type Return = DispatchKeyEventReturn
Return type.
const METHOD: &'static str
[src]
fn into_request(self, session_id: Option<SessionId>, id: u32) -> Request<Self> where
Self: Sized,
[src]
Self: Sized,
impl Debug for DispatchKeyEventCommand
[src]
impl<'de> Deserialize<'de> for DispatchKeyEventCommand
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for DispatchKeyEventCommand
[src]
Auto Trait Implementations
impl RefUnwindSafe for DispatchKeyEventCommand
[src]
impl Send for DispatchKeyEventCommand
[src]
impl Sync for DispatchKeyEventCommand
[src]
impl Unpin for DispatchKeyEventCommand
[src]
impl UnwindSafe for DispatchKeyEventCommand
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,