void sendKey(int keycode, int modifiers = 0, int target = 0)
Sends a keyboard key value to target
Security
Trust Level Required: Full Trust
Parameters
Name | Description |
keycode |
int A Windows virtual key value |
modifiers |
(Optional) int Modifier key mask. Mask Flags: Shift = 1, Ctrl = 2, Alt = 4. Defaults to 0. |
target |
(Optional) int Targets: Current = 0 (Sends to whatever currently has focus), Browser = 2 (Sends to the active browser). Defaults to 0. |
Return
Nothing returned
Examples
var input = document.getElementById('myTextInput');
input.focus();
KioUtils.sendKey(0x08); // Backspace
KioUtils.sendKey(0x63, 2); // Ctrl + c
Requirements
KioWare OS (Linux®) version 1.0 or greater.
Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries.