diff mbox

Extra scan codes for missing keys (v2)

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

Commit Message

Brendan Sleight June 3, 2010, 8:19 p.m. UTC
<aliguori> bmsleight, please post to the top-level
<aliguori> and add a (v2) otherwise, it's easy for me to get confused
that i've already looked at a patch

Thanks....

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" },