Struct cdp::input::DispatchKeyEventCommand [] [src]

pub struct DispatchKeyEventCommand<'a> {
    pub ty: DispatchKeyEventCommandType,
    pub modifiers: Option<i32>,
    pub timestamp: Option<TimeSinceEpoch>,
    pub text: Option<Cow<'a, str>>,
    pub unmodified_text: Option<Cow<'a, str>>,
    pub key_identifier: Option<Cow<'a, str>>,
    pub code: Option<Cow<'a, str>>,
    pub key: Option<Cow<'a, str>>,
    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>,
}

Dispatches a key event to the page.

Command Input.dispatchKeyEvent

Domain Module: cdp::input
Command Struct: cdp::input::DispatchKeyEventCommand
Response Struct: cdp::input::DispatchKeyEventResponse

Fields

Type of the key event.

Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0).

Time at which the event occurred.

Text as generated by processing a virtual key code with a keyboard layout. Not needed for for keyUp and rawKeyDown events (default: "")

Text that would have been generated by the keyboard if no modifiers were pressed (except for shift). Useful for shortcut (accelerator) key handling (default: "").

Unique key identifier (e.g., 'U+0041') (default: "").

Unique DOM defined string value for each physical key (e.g., 'KeyA') (default: "").

Unique DOM defined string value describing the meaning of the key in the context of active modifiers, keyboard layout, etc (e.g., 'AltGr') (default: "").

Windows virtual key code (default: 0).

Native virtual key code (default: 0).

Whether the event was generated from auto repeat (default: false).

Whether the event was generated from the keypad (default: false).

Whether the event was a system key event (default: false).

Trait Implementations

impl<'a> Clone for DispatchKeyEventCommand<'a>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> Debug for DispatchKeyEventCommand<'a>
[src]

[src]

Formats the value using the given formatter.

impl<'a> PartialEq for DispatchKeyEventCommand<'a>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<'a> CdpCommand for DispatchKeyEventCommand<'a>
[src]

COMMAND_NAME: &'static str = "Input.dispatchKeyEvent"

impl<'a> SerializeCdpCommand for DispatchKeyEventCommand<'a>
[src]

[src]

[src]

impl<'de, 'a> DeserializeCdpCommand<'de> for DispatchKeyEventCommand<'a>
[src]

[src]

impl<'b, 'a> HasCdpResponse<'b> for DispatchKeyEventCommand<'a>
[src]