Sends the specified key as input to focused element.
Namespace: MindFusion.Keyboard
File: VirtualKeyboard.js
JavaScript Copy Code |
---|
function sendKey (key) |
The following code send the "Alt" modifier key as input to the focused element of the application:
JavaScript Copy Code |
---|
var vk = VirtualKeyboard.create( document.getElementById("keyboard")); vk.sendKey(Keys.Alt); |