forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommandKey.lcdoc
More file actions
44 lines (28 loc) · 984 Bytes
/
commandKey.lcdoc
File metadata and controls
44 lines (28 loc) · 984 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
Name: commandKey
Synonyms: cmdkey
Type: function
Syntax: the commandKey
Syntax: commandKey()
Summary:
<return|Returns> the state of the <Command key>.
Introduced: 1.0
OS: mac, windows, linux
Platforms: desktop, server
Example:
put commandKey() after keyHistory
Example:
if the commandKey is down then edit script of me
Returns:
The <commandKey> <function> <return|returns> "down" if the key is
pressed and "up" if it's not.
Description:
Use the <commandKey> <function(control structure)> to check whether the
<Command key> is being pressed.
On Unix and Windows systems, the <commandKey> function <return|returns>
the same <value> as the <controlKey> <function(control structure)>: the
two <function(glossary)|functions> are synonyms.
References: left (constant), up (constant), function (control structure),
controlKey (function), value (function), keysDown (function),
function (glossary), return (glossary), Command key (glossary),
commandKeyDown (message)
Tags: ui