controlKey

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
the controlKey
controlKey()
Synonymsctrlkey
Summary

Returns the state of the Control key.

Introduced1.0
OSmac, windows, linux
Platformsdesktop, server
Example
put (the controlKey is up) and (the shiftKey is up) into ctrlShift
if controlKey() is down then go back
Values
NameTypeDescription
return

The controlKey function returns down if the key is pressed and up if it's not. On Unix and Windows systems, the commandKey function returns the same value as the controlKey function: the two functions are synonyms.

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

Use the controlKey function to check whether the user is pressing the Control key.

Tagsui