* [PATCH] qemu: add 0xe0 prefix to r-ctrl and r-alt keycodes
@ 2008-05-13 17:07 Pat Campbell
0 siblings, 0 replies; only message in thread
From: Pat Campbell @ 2008-05-13 17:07 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1: Type: text/plain, Size: 203 bytes --]
Patch puts 0xe0 prefix before putting right alt or right cntrl keycodes.
Also adds keysm definition for ISO_Left_Tab.
Please apply to xen-unstable tip.
Signed-off-by: Pat Campbell <plc@novell.com>
[-- Attachment #2: qemu_keycode.patch --]
[-- Type: text/x-patch, Size: 1021 bytes --]
diff -r 0a8fc1a62796 tools/ioemu/vnc.c
--- a/tools/ioemu/vnc.c Mon May 12 11:19:09 2008 +0100
+++ b/tools/ioemu/vnc.c Tue May 13 10:54:34 2008 -0600
@@ -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 0a8fc1a62796 tools/ioemu/vnc_keysym.h
--- a/tools/ioemu/vnc_keysym.h Mon May 12 11:19:09 2008 +0100
+++ b/tools/ioemu/vnc_keysym.h Tue May 13 10:50:53 2008 -0600
@@ -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},
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-05-13 17:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-13 17:07 [PATCH] qemu: add 0xe0 prefix to r-ctrl and r-alt keycodes Pat Campbell
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.