forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenterKey.xml
More file actions
42 lines (42 loc) · 1.82 KB
/
Copy pathenterKey.xml
File metadata and controls
42 lines (42 loc) · 1.82 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
<doc>
<legacy_id>2391</legacy_id>
<name>enterKey</name>
<type>message</type>
<syntax>
<example>enterKey</example>
</syntax>
<library></library>
<objects>
</objects>
<synonyms>
</synonyms>
<classification>
<category>User Interaction</category>
</classification>
<references>
<command tag="focus">focus Command</command>
<message tag="enterInField">enterInField Message</message>
</references>
<history>
<introduced version="1.0">Added.</introduced>
</history>
<platforms>
<mac/>
<windows/>
<linux/>
</platforms>
<classes>
<desktop/>
<server/>
<web/>
</classes>
<security>
</security>
<summary>Sent when the user presses the Enter key, if there is no text <keyword tag="selection">selection</keyword>.</summary>
<examples>
<example>on enterKey <code><i>-- in a stack script, closes the stack on Enter key</i></code></p><p> close me</p><p>end enterKey</example>
</examples>
<description>
<p>Handle the <b>enterKey</b> <keyword tag="message box">message</keyword> when you want to perform an action (such as going to the next <keyword tag="card">card</keyword>) when the user presses Enter .</p><p/><p><b>Comments:</b></p><p>The Enter key is usually located on the numeric keypad. It is a different key from the Return key (confusingly labeled "Enter" on some keyboards), which is usually located above the right-hand Shift key.</p><p/><p>The message is sent to the active (focused) control, or to the current card if no control is focused. If there is a text selection or insertion point in a field and the user presses Enter, the <b>enterInField</b> <keyword tag="message box">message</keyword> is sent to that <keyword tag="field">field</keyword>, and the <b>enterKey</b> <keyword tag="message box">message</keyword> is not sent.</p>
</description>
</doc>