property shiftKey

(r/o) bool shiftKey;

Typ

Zugriff

This property returns a boolean which will be true if the Shift key is pressed when the event happens.
<box on:keyPress="onKeyPress();"/>

// KeyEvent is inherited from UIEvent
function onKeyPress()
{
    var eventObj = shell.currentEvent;
    if (eventObj)
    {
        if (eventObj.shiftKey)
        {
            shell.print("Shift key is down");
        }
        else
        {
            shell.print("Shift key is not down");
        }
    }
}