optionKey

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
the optionKey
optionKey()
Summary

Returns the state of the Option key.

Introduced1.0
OSmac, windows, linux
Platformsdesktop, server
Example
wait until the optionKey is down
put the optionKey into item 2 of keyState
Values
NameTypeDescription
return

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

RelatedConstant: left, return
Message: optionKeyDown
Function: value, keysDown, altKey
Control Structure: function
Glossary: Alt key, Meta key, Option key, return, function
Description

Use the optionKey function to check whether the Option key, Meta key, or Alt key is being pressed. You can use optionKey to add alternative capabilities to user actions such as clicking.

The altKey and optionKey functions both return the same value. Which one to use is a matter of preference.

The terminology varies depending on platform. Users of different operating systems may know this key as the Option key (Mac OS systems), Meta key (Unix systems), or Alt key (Windows systems).

Tagsui