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

on enterKey -- in a stack script, closes the stack on Enter key
close me
end enterKey

Additional Comments
Expander triangle

Handle the enterKey message when you want to perform an action (such as going to the next card) when the user presses Enter .

Comments:

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.

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 enterInField message is sent to that field, and the enterKey message is not sent.

User Comments
Expander triangle
User thumbnail
Peter Brigham
StarStarStarStarStar
Jul 23, 2009
If there is no selection or insertion point in any field and a locked but focusable field has the focus, the enterinfield message is sent to the field instead of the enterkey message.