Deutsches LiveCode Wiki
Registrieren
Advertisement

Returns the state of the Shift key.Syntax:

eventShiftKey()

Examples:

if eventShiftKey() is down then beep
set the locked of me to (the eventShiftKey is up)

Use the eventAltKey function(control structure) to check whether the Shift key was pressed at the time the current event was dispatched.

If you want to check the state of the Shift key at the current time, rather than when the event was dispatched, use the shiftKey function.

 **warning**: the value of this function is undefined after performing
 a wait operation; it may no longer be the same as the value when the
 event was dispatched.


See also: keysDown (function),scrollbarBeginning (message),

Advertisement