eventControlKey

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
the eventControlKey
eventControlKey()
Summary

Returns the state of the Control key.

Introduced8.1
OSmac, windows, linux
Platformsdesktop, server
Example
put (the eventControlKey is up) and (the eventShiftKey is up) into ctrlShift
if eventControlKey() is down then go back
Values
NameTypeDescription
return

The eventControlKey function returns down if the control key was pressed at the time the current event was dispatched.

RelatedConstant: down, left, up
Message: commandKeyDown
Function: keysDown
Control Structure: function
Glossary: return, function
Description

Use the eventControlKey function to check whether the Control key was pressed at the time the current event was dispatched.

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

On Unix and Windows systems, the eventCommandKey function returns the same value as the eventControlKey function: the two functions are synonyms.

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