pl.wendigo.chrome.domain.input / DispatchKeyEventRequest

DispatchKeyEventRequest

data class DispatchKeyEventRequest (source)

Represents request frame that can be used with Input.dispatchKeyEvent method call.

Dispatches a key event to the page.

Constructors

<init>

DispatchKeyEventRequest(type: String, modifiers: Int? = null, timestamp: TimeSinceEpoch? = null, text: String? = null, unmodifiedText: String? = null, keyIdentifier: String? = null, code: String? = null, key: String? = null, windowsVirtualKeyCode: Int? = null, nativeVirtualKeyCode: Int? = null, autoRepeat: Boolean? = null, isKeypad: Boolean? = null, isSystemKey: Boolean? = null, location: Int? = null)

Represents request frame that can be used with Input.dispatchKeyEvent method call.

Properties

autoRepeat

val autoRepeat: Boolean?

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

code

val code: String?

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

isKeypad

val isKeypad: Boolean?

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

isSystemKey

val isSystemKey: Boolean?

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

key

val key: String?

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

keyIdentifier

val keyIdentifier: String?

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

location

val location: Int?

Whether the event was from the left or right side of the keyboard. 1=Left, 2=Right (default: 0).

modifiers

val modifiers: Int?

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

nativeVirtualKeyCode

val nativeVirtualKeyCode: Int?

Native virtual key code (default: 0).

text

val text: String?

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

timestamp

val timestamp: TimeSinceEpoch?

Time at which the event occurred.

type

val type: String

Type of the key event.

unmodifiedText

val unmodifiedText: String?

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

windowsVirtualKeyCode

val windowsVirtualKeyCode: Int?

Windows virtual key code (default: 0).