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 226
Expand file tree
/
Copy pathenterInField.lcdoc
More file actions
48 lines (33 loc) · 1.37 KB
/
enterInField.lcdoc
File metadata and controls
48 lines (33 loc) · 1.37 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
Name: enterInField
Type: message
Syntax: enterInField
Summary:
Sent to the <field> with the current <selection> when the user presses
the Enter key.
Associations: field
Introduced: 1.0
OS: mac, windows, linux
Platforms: desktop, server
Example:
on enterInField -- add up the lines in the current field
put sum(replaceText(target,return,comma)) into field "Sum"
end enterInField
Description:
Handle the <enterInField> <message> when you want to perform an action
when the user presses Enter in a <field>.
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.
If the <enterInField> <handler> does not <pass> the <message> or send it
to a further <object(glossary)> in the <message path>, the keypress has
no effect. <pass|Passing> the <message> allows the keypress to have its
normal effect.
If there is no selection or insertion point in any field and the user
presses Enter, the <enterKey> <message> is sent instead of
<enterInField>.
References: pass (control structure), handler (glossary), pass (glossary),
message (glossary), message path (glossary), object (glossary),
field (keyword), selection (keyword), keyDown (message),
returnInField (message), enterKey (message), default (property),
allowKeyInField (property)
Tags: ui