Keyboard Properties
Table 10-2 summarizes system properties regarding the current keyboard state and the last key typed. Note that there is no property to indicate whether a non-modifier key is currently being pressed (although you would ordinarily receive repeated keyDown
events during this time). That is, there is no the keyDown
property. Refer to the Xtras cited under "Keyboard Xtras" later in this chapter to detect whether a non-modifier key is currently being pressed.
Table 10-2. Keyboard System Properties and Constants
Property Name |
Usage |
---|---|
[a] | |
[b] | |
BACKSPACE |
Constant indicating the Backspace key at the upper right of the main keyboard (marked “delete” or with an arrow on most keyboards). |
the boxType of member |
Limits the size of keyboard input fields (possible values are #adjust, #limit, #fixed, and #scroll). See Chapter 12 in Director in a Nutshell. |
charToNum (the key) |
The ASCII value[a] of the last key pressed. |
the commandDown |
Boolean indicating whether the |
the controlDown |
Boolean indicating whether the |
the emulateMultiButtonMouse |
Boolean indicating whether to treat |
ENTER |
Constant indicating the |
RETURN |
Constant indicating the |
the exitLock |
Get Lingo in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.