This repository was archived by the owner on Aug 31, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 223
Expand file tree
/
Copy pathcontrolKeyDown.xml
More file actions
43 lines (43 loc) · 3.08 KB
/
Copy pathcontrolKeyDown.xml
File metadata and controls
43 lines (43 loc) · 3.08 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
<doc>
<legacy_id>1231</legacy_id>
<name>controlKeyDown</name>
<type>message</type>
<syntax>
<example>controlKeyDown <i>keyName</i></example>
</syntax>
<library></library>
<objects>
</objects>
<synonyms>
</synonyms>
<classification>
<category>User Interaction</category>
</classification>
<references>
<function tag="keysDown">keysDown Function</function>
<message tag="commandKeyDown">commandKeyDown Message</message>
<message tag="keyDown">keyDown Message</message>
<message tag="optionKeyDown">optionKeyDown Message</message>
</references>
<history>
<introduced version="1.0">Added.</introduced>
</history>
<platforms>
<mac/>
<linux/>
</platforms>
<classes>
<desktop/>
<server/>
<web/>
</classes>
<security>
</security>
<summary>Sent when a Control <glossary tag="key combination">key combination</glossary> is pressed.</summary>
<examples>
<example>on controlKeyDown pKey <i>-- make Control-D delete the current card</i></p><p> if pKey is "D" then </p><p> delete this card</p><p> else </p><p> pass controlKeyDown</p><p> end if</p><p>end controlKeyDown</example>
</examples>
<description>
<p>Handle the <b>controlKeyDown</b> <keyword tag="message box">message</keyword> if you want to provide Control-key shortcuts on <glossary tag="Mac OS">Mac OS systems</glossary>.</p><p/><p><b>Parameters:</b></p><p>The <i>keyName</i> is the actual <keyword tag="character">character</keyword> of the pressed key.</p><p/><p><b>Comments:</b></p><p>The message is sent to the active (focused) control, or to the current card if no control is focused.</p><p/><p>If the Control key is pressed along with the Return key, Tab key, or Enter key, or with an arrow key, no <b>controlKeyDown</b> <keyword tag="message box">message</keyword> is sent. Instead, the <message tag="returnKey">returnKey</message>, <message tag="tabKey">tabKey</message>, <message tag="enterKey">enterKey</message>, or <message tag="arrowKey">arrowKey</message> <keyword tag="message box">message</keyword> is sent. To trap a combination such as Control-Return, use a <message tag="returnKey">returnKey</message> <glossary tag="handler">handler</glossary> and check the <function tag="controlKey">controlKey</function> <control_st tag="function">function</control_st> inside the <glossary tag="handler">handler</glossary>.</p><p/><p><img src="202652"/> <b>Cross-platform note:</b> On <glossary tag="Mac OS">Mac OS systems</glossary>, the <b>controlKeyDown</b> <keyword tag="message box">message</keyword> is sent when a control <glossary tag="key combination">key combination</glossary> is pressed. On <glossary tag="Windows">Windows systems</glossary>, a control <glossary tag="key combination">key combination</glossary> sends a <message tag="commandKeyDown">commandKeyDown</message> message instead, and the <b>controlKeyDown</b> <keyword tag="message box">message</keyword> is never sent. On <glossary tag="Unix">Unix systems</glossary>, the <b>controlKeyDown</b> <keyword tag="message box">message</keyword> is sent only if Mod2 has been defined.</p>
</description>
</doc>