Key Xfcns 1.0
Key Xfcns
Development · v1.0
| Filename | key-xfcns-10.hqx |
|---|---|
| Size | 41.4 KB (42355 bytes) |
| Mac OS | System 7 |
| Downloads | 18 |
Enjoying MacTrove?
Anonymous downloads are free and unlimited.
Create a free account to track favorites,
contribute metadata corrections, and join the
community chat.
About
This stack contains three XFCNs and one XCMD, all related to key events.
keyIsDown (|-1) returns true if the specified key is pressed. With -1 as key code, the XFCN returns true if at least one key ist pressed, false if no key is pressed.
virtualKeyCode () returns a comma delimited list of the virtual key codes of all currently pressed keys.
charKeyCode (["m[odifiers]"]) returns the character of the currently pressed key. If "modifiers" is specified, the function returns them too. If command-option-x is pressed, the function returns the string "cmd opt x".
flushKeyEvents removes keyDown, keyUp, and autoKey events from the OS event queue.
Requirements: This stack needs at least System 7.1 and HyperCard 2.2
Other versions & related
File Info
Original Source: info-mac
This file is part of the MacTrove archive. See the Thank You page for the upstream mirrors we rely on. It is BinHex encoded. Use The Unarchiver to decode it.
Related apps