method doesKeyCodeMatch

bool doesKeyCodeMatch(string keyCode,bool ctrl,bool alt,bool shift);

Argumente

Zurückgegebener Wert

This method returns true if the given key code information is found in a key group for this scene.
function onSample()
{
    // Does this scene have a key code: <key id="myID" ctrl="true" key="S" command="myCmd"/>
    if (scene.doesKeyCodeMatch("S", true, false, false))
    {
        shell.print("YES it does");
    }
    else
    {
        shell.print("NO it does");
    }
}