Raised when a key is pressed.
Namespace: MindFusion.Keyboard
File: VirtualKeyboard.js
JavaScript Copy Code |
---|
get keyPressed() {} |
keyPressed is an instance of the EventDispatcher class. Event handlers receive the pressed Key instance as argument.
The following code handles the keyPressed event:
JavaScript Copy Code |
---|
vKeyboard.keyPressed.addEventListener( function (sender, args) { if (args.code === MindFusion.Keyboard.Keys.F1) { window.open( "https://help.my.location.com", "_blank", "location=yes,height=570,width=520,scrollbars=yes,status=yes"); } }); |