Error getting tags :
error 404Error getting tags :
error 404 returnKey | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
returnKey
Basics
Expander triangle
Type
Message
Syntax
returnKey
See Also
Introduced
1.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Sent to the active object when there is no text selection and the user presses the Return key.
Examples

on returnKey -- go to the next card when the user presses return
go next card
end returnKey

Additional Comments
Expander triangle

Handle the returnKey message when you want to perform an action when the user presses Return.

Comments:

The Return key (confusingly labeled "Enter" on some keyboards) is usually located above the right-hand Shift key. It is the key you press to go to a new line.

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 (or a button whose menuMode is "comboBox") and the user presses Return, the returnInField message is sent instead of returnKey.

User Comments
Expander triangle
User thumbnail
Peter Brigham
StarStarStarStarStar
Jul 23, 2009
Note: If a field is focusable but locked, so no text selection or insertion point is possible, but the field has the focus, the returninfield message is sent to the focused field. In other words, when they have the focus, fields will be sent a "returninfield" whether there is a selection in the field or not, unlike other controls, which will receive a "returnkey" message.