Search
Key-press Dispatch

JsKeyboard simulates key-press by modifying the text of the element that currently has the input focus. The position of the caret is also updated accordingly. Functional keys by default produce no input. If you wish to perform certain actions when the user presses a functional key you should handle 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");
        }
    });