Edit Page
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | + | Sent to the active [[object(glossary)|object]] when there is no text [[selection]] and the user presses the Return key.Syntax: |
|
− | |||
− | == Message == |
||
− | Syntax: |
||
returnKey |
returnKey |
||
⚫ | |||
− | |||
− | 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]]. |
||
− | |||
− | == Message handler == |
||
Examples: |
Examples: |
||
on returnKey -- go to the next card when the user presses return |
on returnKey -- go to the next card when the user presses return |
||
Line 15: | Line 7: | ||
end returnKey |
end returnKey |
||
− | + | Handle the [[returnKey]] message when you want to perform an action when |
|
+ | the user presses Return. |
||
+ | |||
+ | The Return key (confusingly labeled "Enter" on some keyboards) is |
||
⚫ | |||
+ | 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]]. |
||
− | See also: [[returnInField]] |
+ | See also: [[returnInField]] (message), |
+ | [[Category: ui]] |
||
[[Category:GUI]] |
[[Category:GUI]] |
||
[[Category:Keyboard]] |
[[Category:Keyboard]] |