Home
The HyperCard Center
HyperTalk Reference
Home » HyperTalk Reference » returnKey

Note: This is a work in progress and many formatting issues have been fixed. Read more about the project on the home page.

returnKey

returnKey

The returnKey command sends a statement typed into the Message box to the current card.

HyperCard sends the returnKey command to the current card when the user presses the Return key unless the insertion point is in a field, in which case HyperCard sends returnInField instead.

You can handle the returnKey message as follows:

on returnKey
statements
end returnKey

Related Topics

Placeholders

statements

Any return-separated list of built-in commands, user-defined handlers, or keywords that are part of a message or function handler.

put "Hello world" -- built-in command
get total(field 1) -- function call
global HelpInfo -- keyword

HyperTalk Reference

Version 0.8b4 (July 4, 2025)

Made with Macintosh

Switch to Retro View