forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommandKey.xml
More file actions
47 lines (47 loc) · 1.86 KB
/
Copy pathcommandKey.xml
File metadata and controls
47 lines (47 loc) · 1.86 KB
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
44
45
46
47
<doc>
<legacy_id>1493</legacy_id>
<name>commandKey</name>
<type>function</type>
<syntax>
<example>the commandKey</example>
<example>commandKey()</example>
</syntax>
<library></library>
<objects>
</objects>
<synonyms>
<synonym>cmdKey</synonym>
</synonyms>
<classification>
<category>User Interaction</category>
</classification>
<references>
<constant tag="left">left Constant</constant>
<constant tag="up">up Constant</constant>
<function tag="keysDown">keysDown Function</function>
<message tag="commandKeyDown">commandKeyDown Message</message>
</references>
<history>
<introduced version="1.0">Added.</introduced>
</history>
<platforms>
<mac/>
<windows/>
<linux/>
</platforms>
<classes>
<desktop/>
<server/>
<web/>
</classes>
<security>
</security>
<summary><glossary tag="return">Returns</glossary> the state of the <glossary tag="Command key">Command key</glossary>.</summary>
<examples>
<example>put commandKey() after keyHistory</example>
<example>if the commandKey is down then edit script of me</example>
</examples>
<description>
<p>Use the <b>commandKey</b> <control_st tag="function">function</control_st> to check whether the <glossary tag="Command key">Command key</glossary> is being pressed.</p><p/><p><b>Value:</b></p><p>The <b>commandKey</b> <control_st tag="function">function</control_st> <glossary tag="return">returns</glossary> "down" if the key is pressed and "up" if it's not.</p><p/><p><b>Comments:</b></p><p>On Unix and Windows systems, the <b>commandKey</b> function <glossary tag="return">returns</glossary> the same <function tag="value">value</function> as the <function tag="controlKey">controlKey</function> <control_st tag="function">function</control_st>: the two <glossary tag="function">functions</glossary> are synonyms.</p>
</description>
</doc>