data class DispatchKeyEventRequest
Request object containing input parameters for the InputDomain.dispatchKeyEvent command.
<init> |
Request object containing input parameters for the InputDomain.dispatchKeyEvent command. 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) |
autoRepeat |
Whether the event was generated from auto repeat (default: false). val autoRepeat: Boolean? |
code |
Unique DOM defined string value for each physical key (e.g., 'KeyA') (default: ""). val code: String? |
commands |
Editing commands to send with the key event (e.g., 'selectAll') (default: []).
These are related to but not equal the command names used in val commands: List<String>? |
isKeypad |
Whether the event was generated from the keypad (default: false). val isKeypad: Boolean? |
isSystemKey |
Whether the event was a system key event (default: false). val isSystemKey: Boolean? |
key |
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 key: String? |
keyIdentifier |
Unique key identifier (e.g., 'U+0041') (default: ""). val keyIdentifier: String? |
location |
Whether the event was from the left or right side of the keyboard. 1=Left, 2=Right (default: 0). val location: Int? |
modifiers |
Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0). val modifiers: Int? |
nativeVirtualKeyCode |
Native virtual key code (default: 0). val nativeVirtualKeyCode: Int? |
text |
Text as generated by processing a virtual key code with a keyboard layout. Not needed for
for val text: String? |
timestamp |
Time at which the event occurred. val timestamp: TimeSinceEpoch? |
type |
Type of the key event. val type: String |
unmodifiedText |
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 unmodifiedText: String? |
windowsVirtualKeyCode |
Windows virtual key code (default: 0). val windowsVirtualKeyCode: Int? |