method getKeyEventActions

string getKeyEventActions(string event,string keyCode,bool ctrl,bool alt,bool shift);

Argumente

Zurückgegebener Wert

This method returns the event handler for the given key event. The key event lookup is dependent on all key modifiers so these must be a perfect match. This will return the response to the event formatted as a string. (Example: "onAltEnterPressed();")
                    
var box = scene.getBoxById("genericItem1");
if (box)
{
    shell.print("Event Handler Is: " + box.getKeyEventActions("keyUp", "ENTER", false, true, false));
}