<doc>
  <legacy_id>1242</legacy_id>
  <name>returnKey</name>
  <type>message</type>
  <syntax>
    <example>returnKey</example>
  </syntax>
  <library></library>
  <objects>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>User Interaction</category>
  </classification>
  <references>
    <command tag="focus">focus Command</command>
  </references>
  <history>
    <introduced version="1.0">Added.</introduced>
  </history>
  <platforms>
    <mac/>
    <windows/>
    <linux/>
    <ios/>
    <android/>
  </platforms>
  <classes>
    <desktop/>
    <server/>
    <web/>
    <mobile/>
  </classes>
  <security>
  </security>
  <summary>Sent to the active <glossary tag="object">object</glossary> when there is no text <keyword tag="selection">selection</keyword> and the user presses the Return key.</summary>
  <examples>
    <example>on returnKey <code><i>-- go to the next card when the user presses return</i></code></p><p>  go next card</p><p>end returnKey</example>
  </examples>
  <description>
    <p>Handle the <b>returnKey</b> <keyword tag="message box">message</keyword> when you want to perform an action when the user presses Return.</p><p/><p><b>Comments:</b></p><p>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.</p><p/><p>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 <b>menuMode</b> is "comboBox") and the user presses Return, the <message tag="returnInField">returnInField</message> <keyword tag="message box">message</keyword> is sent instead of <b>returnKey</b>.</p>
  </description>
</doc>