[Metacard] rawkeydown vs. keysdown

Curry Kenworthy curry at kagi.com
Sat Nov 24 03:16:46 EST 2001


Using Revolution 1.1, Mac 8.6 on iMac (with the condensed keyboard), I have
come across an inconsistency in the key codes reported for the rawKeyDown
message and the keysDown function.

If you make a text field 2 lines high and give it the script:

on rawkeydown n
  put n & cr & the keysdown into me
end rawkeydown

The two numbers will always be the same, except when using the numerical
keypad. Then, the number reported by rawKeyDown will be the same as the
equivalent key on the main alpha section of the keyboard, while the keysDown
reports a different number which is unique for the key. This is true for the
numbers as well as the arithmetic operators, equal sign, and decimal/period
keys on the keypad.

Thanks,

Curry Kenworthy





More information about the metacard mailing list