On Wed, 21 Jun 2000, Jacqueline Landman Gay wrote:
> Dave Cragg wrote:
>
> > It seems to work differently on Windows (on NT anyway). KeyUps and
> > rawKeyUps get sent even without an active field. A series rawKeyUps
> > and rawKeyDowns get sent when the key is depressed for a long time,
> > matching the normal key repeat rate. This happens on cards with no
> > controls of any kind. All keys seem to get detected, including the
> > shift key. Is this a Mac limitation or perhaps a bug in the Mac
> > engine?
>
> I did more tests which show that it works that way here on my Mac too --
> keyups and downs are being sent to a card without any fields. (My
> previous tests were flawed.) One exception seems to be the shift key,
> which is what I really want to use. Shift doesn't seem to be detected.
> There are some other keys which aren't being detected either on my Mac,
> mostly control keys like control, command, and option.
This is just a MacOS "feature": unlike the other platforms, it doesn't
send events when these modifier keys are pressed. Even the keyUp
message is a hack on MacOS, due to a design flaw deep inside the OS:
if there's a context switch (i.e., another program gets a chance to
run) between when the key is pressed and when it is released, the "up"
event sometimes gets sent to that other program! So what the MacOS
engine actually does is to send the keyUp message at the end of the
keyDown event handler :-(
Regards,
Scott
> --
> Jacqueline Landman Gay | [EMAIL PROTECTED]
> HyperActive Software | [EMAIL PROTECTED]
> Custom hypermedia solutions | http://www.hyperactivesw.com
> 612.724.1596 | 612.724.1562 - fax
********************************************************
Scott Raney [EMAIL PROTECTED] http://www.metacard.com
MetaCard: You know, there's an easier way to do that...
Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.