commandKey

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
the commandKey
commandKey()
Synonymscmdkey
Summary

Returns the state of the Command key.

Introduced1.0
OSmac, windows, linux
Platformsdesktop, server
Example
put commandKey() after keyHistory
if the commandKey is down then edit script of me
Values
NameTypeDescription
return

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

RelatedConstant: left, up
Message: commandKeyDown
Function: controlKey, value, keysDown
Control Structure: function
Glossary: function, return, Command key
Description

Use the commandKey function to check whether the Command key is being pressed.

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

Tagsui