Skip to contentSkip to conversation

qemu: add 0xe0 prefix to r-ctrl and r-alt keycodes

PATCH New Pat Campbell 1 participant 1 message May 13, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

Please apply to xen-unstable tip.

tools/ioemu/vnc.c +2 -0
diff -r 0a8fc1a62796 tools/ioemu/vnc.c
@@ -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);
tools/ioemu/vnc_keysym.h +1 -0
diff -r 0a8fc1a62796 tools/ioemu/vnc_keysym.h
@@ -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-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel