Keyboard Handling
Alexander Gottwald
Alexander.Gottwald@informatik.tu-chemnitz.de
Sat Apr 21 11:09:00 GMT 2001
Hi,
I've tried some code to handle AltGr more correctly.
I attached a patch to the winwndproc.c from Apr-14 Sourceball
which fixes at least the press of AltGr (the release is not done yet).
It uses mainly the good fact, that the fake Control_L- and Alt_R-message
have the same timestamp. I just cache the Control_L press, set a very
short timestamp and
1) drop the Control_L if the coresponding Alt_R message arrives
2) send the Control_L if
a) another key (not Alt_Gr) was pressed
b) the timeout (currently 1ms) expires
The current code still needs to be cleaned up, but hope you can already
give some hints on possible error and mistakes.
I will make a test version available on http://www.gotti.org/ [1].
bye
ago
[1] http://www-usercgi.tu-chemnitz.de/~goal/xfree
--
Alexander.Gottwald@informatik.tu-chemnitz.de
http://www.gotti.org
+49 3725 3498080
More information about the Cygwin-xfree
mailing list