Virtual Keyboard for JavaScript
VirtualKeyboard.sendKey Method
See Also
 






Sends the specified key as input to focused element.

Namespace: MindFusion.Keyboard
Assembly: VirtualKeyboard.js

 Syntax

JavaScript  Copy Code

function sendKey (key)

 Parameters

key

The virtual key that should be sent. Use on of the Keys enumeration vlues or instances of the Key class.

 Example

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);

 See Also

VirtualKeyboard Members
VirtualKeyboard Class
MindFusion.Keyboard Namespace