# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1210752828 -3600
# Node ID 39566bf4c9f09cc0b14e2c8ea2963e2efdf9f469
# Parent cb22b23156a4b72455d733f547d0c2a59810bed5
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>
---
tools/ioemu/vnc.c | 2 ++
tools/ioemu/vnc_keysym.h | 1 +
2 files changed, 3 insertions(+)
diff -r cb22b23156a4 -r 39566bf4c9f0 tools/ioemu/vnc.c
--- a/tools/ioemu/vnc.c Wed May 14 09:11:40 2008 +0100
+++ b/tools/ioemu/vnc.c Wed May 14 09:13:48 2008 +0100
@@ -1333,6 +1333,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 cb22b23156a4 -r 39566bf4c9f0 tools/ioemu/vnc_keysym.h
--- a/tools/ioemu/vnc_keysym.h Wed May 14 09:11:40 2008 +0100
+++ b/tools/ioemu/vnc_keysym.h Wed May 14 09:13:48 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
|