Home THE HYPERCARD CENTER

HyperTalk Reference
Home » HyperTalk Reference » Commands

Note: This is a work in progress and will be formatting errors. Read more about the project on the home page.

enterKey

enterKey

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

HyperCard sends the enterKey command to the current card when the user presses the Enter key unless the insertion point is in a field, in which case HyperCard sends enterInField instead.

You can handle the enterKey message as follows:

on enterKey
   statements
end enterKey



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


Related Topics

« enterInField | HyperTalk Reference | export paint »


Version 0.7b1 (March 24, 2022)

Made with Macintosh

Switch to Modern View

Home
The HyperCard Center
HyperTalk Reference
Home » HyperTalk Reference » Commands

Note: This is a work in progress and will be formatting errors. Read more about the project on the home page.

enterKey

enterKey

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

HyperCard sends the enterKey command to the current card when the user presses the Enter key unless the insertion point is in a field, in which case HyperCard sends enterInField instead.

You can handle the enterKey message as follows:

on enterKey
   statements
end enterKey



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


Related Topics

« enterInField | HyperTalk Reference | export paint »

Version 0.7b1 (March 24, 2022)

Made with Macintosh

Switch to Retro View