Search
VirtualKeyboard.keyPressed Event
See Also
 






Raised when a key is pressed.

Namespace: MindFusion.Keyboard
File: VirtualKeyboard.js

 Syntax

JavaScript  Copy Code

get keyPressed() {}

 Event Data

keyPressed is an instance of the EventDispatcher class. Event handlers receive the pressed Key instance as argument.

 Example

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

 See Also