<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title></title>
</head>
<body>
I spent a lot of time looking for a solution for using my Brasilian ABNT-2
keyboard. I've already sent a new patch to wine-patches in order to correct
keytables and vkey tables. But it remained a small problem: It was NOT generating
the correct dead-key codes. So, I developed a <b>workaround</b>. This patch
has to be applyied to dlls/x11drv/keyboard.c (It was tested with CVS 20021125).
<br>
I advice that it wil work only for ABNT-2 keyboards.<br>
<br>
----------------------------------------------------------------------------------------------------------------------------------------<br>
<br>
--- keyboard.c 2002-11-28 22:33:07.000000000 -0200<br>
+++ keyboard.c 2002-12-16 15:10:07.000000000 -0200<br>
@@ -1759,6 +1794,10 @@<br>
else TRACE("Found keycode %d (0x%2X)\n",e.keycode,e.keycode);<br>
<br>
ret = XLookupString(&e, (LPVOID)lpChar, 2, &keysym, NULL);<br>
+<br>
+/* Gambiarra para funcionarem os acentos em teclado ABNT-2 */<br>
+if ((e.keycode==48)||(e.keycode==34)||((e.keycode==15)&&(e.state
& ShiftMask))) ret=0;<br>
+<br>
wine_tsx11_unlock();<br>
<br>
if (ret == 0)<br>
<br>
</body>
</html>