[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-3.2-testing] qemu: add 0xe0 prefix to r-ctrl and r-alt keycodes



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1210841176 -3600
# Node ID 7bfd5bead11adcaf548f56e47bf8a41c1a3a4c9a
# Parent  5824167feb81c6b85094d26da633a6a2e7ff496f
qemu: add 0xe0 prefix to r-ctrl and r-alt keycodes

Patch puts 0xe0 prefix before putting right alt or right cntrl
keycodes. Also adds keysm definition for ISO_Left_Tab.

Signed-off-by: Pat Campbell <plc@xxxxxxxxxx>
xen-unstable changeset:   17632:39566bf4c9f09cc0b14e2c8ea2963e2efdf9f469
xen-unstable date:        Wed May 14 09:13:48 2008 +0100
---
 tools/ioemu/vnc.c        |    2 ++
 tools/ioemu/vnc_keysym.h |    1 +
 2 files changed, 3 insertions(+)

diff -r 5824167feb81 -r 7bfd5bead11a tools/ioemu/vnc.c
--- a/tools/ioemu/vnc.c Wed May 14 09:12:27 2008 +0100
+++ b/tools/ioemu/vnc.c Thu May 15 09:46:16 2008 +0100
@@ -1133,6 +1133,8 @@ static void do_key_event(VncState *vs, i
     case 0x9d:                          /* Right CTRL */
     case 0x38:                          /* Left ALT */
     case 0xb8:                          /* Right ALT */
+        if (keycode & 0x80)
+            kbd_put_keycode(0xe0);
         if (down) {
             vs->modifiers_state[keycode] = 1;
             kbd_put_keycode(keycode & 0x7f);
diff -r 5824167feb81 -r 7bfd5bead11a tools/ioemu/vnc_keysym.h
--- a/tools/ioemu/vnc_keysym.h  Wed May 14 09:12:27 2008 +0100
+++ b/tools/ioemu/vnc_keysym.h  Thu May 15 09:46:16 2008 +0100
@@ -345,6 +345,7 @@ static name2keysym_t name2keysym[]={
 {"Num_Lock", 0xff7f},    /* XK_Num_Lock */
 {"Pause", 0xff13},       /* XK_Pause */
 {"Escape", 0xff1b},      /* XK_Escape */
+{"ISO_Left_Tab", 0xfe20},/* XK_ISO_Left_Tab */
 
     /* localized keys */
 {"BackApostrophe", 0xff21},

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.