<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <title></title>
</head>
<body>
&nbsp;&nbsp;&nbsp; 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>
&nbsp;&nbsp;&nbsp; I advice that it wil work only for ABNT-2 keyboards.<br>
<br>
----------------------------------------------------------------------------------------------------------------------------------------<br>
<br>
--- keyboard.c&nbsp; 2002-11-28 22:33:07.000000000 -0200<br>
+++ keyboard.c&nbsp; 2002-12-16 15:10:07.000000000 -0200<br>
@@ -1759,6 +1794,10 @@<br>
&nbsp;&nbsp;&nbsp;&nbsp; else TRACE("Found keycode %d (0x%2X)\n",e.keycode,e.keycode);<br>
&nbsp;&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp;&nbsp; ret = XLookupString(&amp;e, (LPVOID)lpChar, 2, &amp;keysym, NULL);<br>
+<br>
+/* Gambiarra para funcionarem os acentos em teclado ABNT-2 */<br>
+if ((e.keycode==48)||(e.keycode==34)||((e.keycode==15)&amp;&amp;(e.state
&amp; ShiftMask))) ret=0;<br>
+<br>
&nbsp;&nbsp;&nbsp;&nbsp; wine_tsx11_unlock();<br>
&nbsp;&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp;&nbsp; if (ret == 0)<br>
<br>
</body>
</html>