When is the CONTROL key not a control key?

J. Landman Gay jacque at hyperactivesw.com
Sat May 12 23:25:43 EDT 2012


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         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the use-livecode mailing list