data class DispatchKeyEventRequest
(source)
Represents request frame that can be used with Input.dispatchKeyEvent method call.
Dispatches a key event to the page.
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. |
val autoRepeat: Boolean?
Whether the event was generated from auto repeat (default: false). |
|
val code: String?
Unique DOM defined string value for each physical key (e.g., 'KeyA') (default: ""). |
|
val isKeypad: Boolean?
Whether the event was generated from the keypad (default: false). |
|
val isSystemKey: Boolean?
Whether the event was a system key event (default: false). |
|
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: ""). |
|
val keyIdentifier: String?
Unique key identifier (e.g., 'U+0041') (default: ""). |
|
val location: Int?
Whether the event was from the left or right side of the keyboard. 1=Left, 2=Right (default: 0). |
|
val modifiers: Int?
Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0). |
|
val nativeVirtualKeyCode: Int?
Native virtual key code (default: 0). |
|
val text: String?
Text as generated by processing a virtual key code with a keyboard layout. Not needed for
for |
|
val timestamp: TimeSinceEpoch?
Time at which the event occurred. |
|
val type: String
Type of the key event. |
|
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: ""). |
|
val windowsVirtualKeyCode: Int?
Windows virtual key code (default: 0). |