forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinputReturnKey.lcdoc
More file actions
28 lines (17 loc) · 1.12 KB
/
Copy pathinputReturnKey.lcdoc
File metadata and controls
28 lines (17 loc) · 1.12 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
Name: inputReturnKey
Type: message
Syntax: inputReturnKey
Summary: Sent when the return key is pressed and focus is removed from an mobile text input control.
Introduced: 4.6
OS: ios,android
Platforms: mobile
Example:
on inputReturnKey -- save the details when the return key is pressed, then focus on the next control
saveUserName
mobileControlDo tEmailFieldID, "focus"
end inputReturnKey
Description:
The <inputReturnKey> message is sent when the return key is pressed and focus is removed from the mobile text input control.
Handle the <inputReturnKey> message if you want to make changes to the interface or perform an action when the return key is pressed and focus is removed from an iosTextInput, androidTextInput or androidMultiline control.
The <inputReturnKey> message is sent to the object containing the script that created the text input control.
References: mobileControlCreate (command), mobileControlDelete (command), mobileControlSet (command), mobileControlGet (function), mobileControlTarget (function), mobileControls (function), inputEndEditing (message), inputTextChanged (message), inputBeginEditing (message)