Note: This is a work in progress and many formatting issues have been fixed. Read more about the project on the home page.
keyDown char
The keyDown
command simulates a key press from within a handler. It acts exactly as if the user pressed a character
from the keyboard.
HyperCard sends the keyDown
command to a field (if the insertion point is set) or to the current card when the user presses a key. The value passed to the parameter variable char
corresponds to the key pressed.
You can handle the keyDown
message as follows:
Note: keyDown
is not sent for characters typed using the type
command.
An expression that yields a single character.
For example:
Any return-separated list of built-in commands, user-defined handlers, or keywords that are part of a message or function handler.