This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
RE: New devel to-do item (release all pressed keyboard keys on focus loss)
- From: "Harold Hunt" <huntharo at msu dot edu>
- To: <John_Tobey at notes dot intdata dot com>
- Cc: "cygx" <cygwin-xfree at cygwin dot com>
- Date: Thu, 6 Dec 2001 10:48:51 -0500
- Subject: RE: New devel to-do item (release all pressed keyboard keys on focus loss)
John,
> > > I suppose for this the solution would be to make winSendKeyEvent
> > > do nothing if
> > > its fDown already matches the array element
>
> > Nah, you can't do that because we sometimes call
> winSendKeyEvent multiple
> > times from winwndproc/winWindowProc()/WM_KEYDOWN if the key has a repeat
> > count.
>
> But I can do it when both are *false*. This goes over my earlier patch:
Hmm... yes, that seems correct.
Just test it for awhile to make sure it all works as expected.
Harold