Struct chrome_remote_interface_model::input::DispatchKeyEventCommand[][src]

pub struct DispatchKeyEventCommand { /* fields omitted */ }

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]

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]

impl Command for DispatchKeyEventCommand[src]

type Return = DispatchKeyEventReturn

Return type.

impl Debug for DispatchKeyEventCommand[src]

impl<'de> Deserialize<'de> for DispatchKeyEventCommand[src]

impl Serialize for DispatchKeyEventCommand[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.