DispatchKeyEventRequest

data class DispatchKeyEventRequest(type: String, modifiers: Int?, timestamp: TimeSinceEpoch?, text: String?, unmodifiedText: String?, keyIdentifier: String?, code: String?, key: String?, windowsVirtualKeyCode: Int?, nativeVirtualKeyCode: Int?, autoRepeat: Boolean?, isKeypad: Boolean?, isSystemKey: Boolean?, location: Int?, commands: List<String>?)

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

Dispatches a key event to the page.

See also

Constructors

DispatchKeyEventRequest
Link copied to clipboard
fun 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, commands: List<String>? = null)

Properties

autoRepeat
Link copied to clipboard
val autoRepeat: Boolean? = null
Whether the event was generated from auto repeat (default: false).
code
Link copied to clipboard
val code: String? = null
Unique DOM defined string value for each physical key (e.g., 'KeyA') (default: "").
commands
Link copied to clipboard
val commands: List<String>? = null
Editing commands to send with the key event (e.g., 'selectAll') (default: []).
isKeypad
Link copied to clipboard
val isKeypad: Boolean? = null
Whether the event was generated from the keypad (default: false).
isSystemKey
Link copied to clipboard
val isSystemKey: Boolean? = null
Whether the event was a system key event (default: false).
key
Link copied to clipboard
val key: String? = null
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
Link copied to clipboard
val keyIdentifier: String? = null
Unique key identifier (e.g., 'U+0041') (default: "").
location
Link copied to clipboard
val location: Int? = null
Whether the event was from the left or right side of the keyboard.
modifiers
Link copied to clipboard
val modifiers: Int? = null
Bit field representing pressed modifier keys.
nativeVirtualKeyCode
Link copied to clipboard
val nativeVirtualKeyCode: Int? = null
Native virtual key code (default: 0).
text
Link copied to clipboard
val text: String? = null
Text as generated by processing a virtual key code with a keyboard layout.
timestamp
Link copied to clipboard
val timestamp: TimeSinceEpoch? = null
Time at which the event occurred.
type
Link copied to clipboard
val type: String
Type of the key event.
unmodifiedText
Link copied to clipboard
val unmodifiedText: String? = null
Text that would have been generated by the keyboard if no modifiers were pressed (except for shift).
windowsVirtualKeyCode
Link copied to clipboard
val windowsVirtualKeyCode: Int? = null
Windows virtual key code (default: 0).

Sources

jvm source
Link copied to clipboard