This patch used to work on qemu debian source package version
1.6.0+dsfg (no need to "-k pt-br").

Reading the 2.1+dsfg sources, I think it will cleanly apply.

I don't know if this patch destroys some other keyboard layout. Also,
I don't know how to confine the change to "-k pt-br" (so it would be
ok to mess with other otherwise working layouts, since "-k pt-br" is
actually for ***this*** layout).


Description: working ABNT2 keyboard
 Correctly handles the slash/question-mark key present in these brazilian
 keyboards.

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Author: Rodrigo Lemos <[email protected]>
Bug: https://bugs.launchpad.net/qemu/+bug/1038136
Bug-Debian: http://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>

--- qemu-1.6.0+dfsg.orig/ui/x_keymap.c
+++ qemu-1.6.0+dfsg/ui/x_keymap.c
@@ -94,7 +94,7 @@ static const uint8_t x_keycode_to_pc_key
  */

 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) */


--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to