On 5/12/12 9:36 AM, Richmond wrote:
So; reading the LC documentation (for the first time in ages) I
discovered that ctrlKey() returns the state
of the Control key on non-Mac computers (such as those running Windows
and Linux), but the state
of the Command key on Macs.

Jolly nice.

How do I find out the state of the key marked 'ctrl' on my Mac keyboard
that is connected to a Mac?

The engine maps the keys:

Key            Mac           Win/Linux

commandkey     command        control
controlKey     control        control
optionKey      option         alt

So on a Mac, "controlKey" or "control" gives what you want. On Windows and Linux, commandKey and controlKey are synonyms.

--
Jacqueline Landman Gay         |     [email protected]
HyperActive Software           |     http://www.hyperactivesw.com

_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to