diff mbox

ABNT2 keys again

Message ID 37bb64b5f3290734d2526a74c9a0b11f.squirrel@nonada.if.usp.br
State New
Headers show

Commit Message

Joao Luis Meloni Assirati May 22, 2015, 3:03 p.m. UTC
> 22.05.2015 13:01, Gerd Hoffmann wrote:

[...]

>>>> The solution appears to be trivial (see also some background
>>>> at http://blog.nielshorn.net/2011/03/qemu-and-brazilian-keyboards/ ),
>>>> but the problem is definitely still here.

This is the patch that works:



[...]

>> Anyone having such a keyboard and willing to run some tests?

I have this keyboard and I can run tests.

Joao Luis.
diff mbox

Patch

--- ui/x_keymap.c~
+++ ui/x_keymap.c
@@ -94,7 +94,7 @@ 
  */

 static const uint8_t evdev_keycode_to_pc_keycode[61] = {
-    0,         /*  97 EVDEV - RO   ("Internet" Keyboards) */
+    0x73,      /*  97 EVDEV - /?° (ABNT2 Keyboards) */
     0,         /*  98 EVDEV - KATA (Katakana) */
     0,         /*  99 EVDEV - HIRA (Hiragana) */
     0x79,      /* 100 EVDEV - HENK (Henkan) */
@@ -126,7 +126,7 @@ 
     0,         /* 126 EVDEV - I126 ("Internet" Keyboards) */
     0,         /* 127 EVDEV - PAUS */
     0,         /* 128 EVDEV - ???? */
-    0,         /* 129 EVDEV - I129 ("Internet" Keyboards) */
+    0x34,      /* 129 abnt2 KP-period */
     0xf1,      /* 130 EVDEV - HNGL (Korean Hangul Latin toggle) */
     0xf2,      /* 131 EVDEV - HJCV (Korean Hangul Hanja toggle) */
     0x7d,      /* 132 AE13 (Yen)*/