diff mbox

Extra scan codes for missing keys

Message ID AANLkTinxyNqLfXD6D_2b1iZ7CSPeZZtPpVE7KHnt0J5p@mail.gmail.com
State New
Headers show

Commit Message

Brendan Sleight May 27, 2010, 8:31 p.m. UTC
Hi All,

First - Qemu is fantastic and allows lots of wonderful things.

Second, when using qemu-system-ppc, I wanted to use sendkey to emulate
a colon. This patch enables shift-semicolon to emulate a ':'

Whilst I was adding semicolon, I used the following link to look up
some other missing keys :-
 http://terpconnect.umd.edu/~nsw/ench250/scancode.htm#Key2

Please cc my to any replies as I am not subscribed to the list.

Best Regards,
Brendan M. Sleight
diff mbox

Patch

diff --git a/monitor.c b/monitor.c
index ad50f12..e1ffa0e 100644
--- a/monitor.c
+++ b/monitor.c
@@ -1641,6 +1641,8 @@  static const KeyDef key_defs[] = {
     { 0x17, "i" },
     { 0x18, "o" },
     { 0x19, "p" },
+    { 0x1a, "sqr_brack_l" },
+    { 0x1b, "sqr_brack_r" },

     { 0x1c, "ret" },

@@ -1653,7 +1655,11 @@  static const KeyDef key_defs[] = {
     { 0x24, "j" },
     { 0x25, "k" },
     { 0x26, "l" },
+    { 0x27, "semicolon" },
+    { 0x28, "apostrophe" },
+    { 0x29, "grave_accent" },

+    { 0x2b, "backslash" },
     { 0x2c, "z" },
     { 0x2d, "x" },
     { 0x2e, "c" },