eventShiftKey

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
the eventShiftKey
eventShiftKey()
Summary

Returns the state of the Shift key.

Introduced8.1
OSmac, windows, linux
Platformsdesktop, server
Example
if eventShiftKey() is down then beep
set the locked of me to (the eventShiftKey is up)
Values
NameTypeDescription
return

The eventShiftKey function returns down if the key is pressed and up if it's not.

RelatedConstant: left
Message: scrollbarBeginning
Function: keysDown
Control Structure: function
Glossary: return
Description

Use the eventAltKey function 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.

Tagsui