> Well, arrows are recognized by 'the key', to be sure. I wonder if 
> this is not a mistranslation into German -- keys such as command, 
> control and so on are *not* normally "seen" by 'the key' (as I recall 
> -- don't have Director open right now), even if there's a regular 
> alpha key pressed.
> 
You remember right, kind of ^_^ Ctrl-s on the Mac will return a keycode
of 1, but "the key" will have a value of 19. I think it's a bit
different on Windows--in our key handler, we add 256 to charToNum(the
key), and 160 on Windows to trap control characters.

> I gather keyCode doesn't behave in exactly the same way.
> 
Right. I use the keyCode to check for function keys. I think a keycode
of 96 or above is the function key range. Other keys like home (115) and
end live up there, too. It's probably a legacy thing--I think older
keyboards had arrow keys, but not home, page up, etc. (I'm talking
*old*, like Apple II, Trash-80, etc.) 

> And of course there's comadDown, controlDown and so on, but they 
> don't seem to work if it's *just* cmd or ctrl that are pressed -- 
> your code won't do a thing unless there's something else being 
> pressed there as well!
> 
You won't get "the key" or a keyCode, but I think you can test for
commandDown or controlDown in a loop. I'll have to test that to make
sure, though.

Cordially,

Kerry Thompson
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]

Reply via email to