WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel][PATCH] qemu: add 0xe0 prefix to r-ctrl and r-alt keycodes

To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel][PATCH] qemu: add 0xe0 prefix to r-ctrl and r-alt keycodes
From: Pat Campbell <plc@xxxxxxxxxx>
Date: Tue, 13 May 2008 11:07:59 -0600
Delivery-date: Tue, 13 May 2008 10:11:43 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.6 (X11/20070801)
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@xxxxxxxxxx>


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},
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel][PATCH] qemu: add 0xe0 prefix to r-ctrl and r-alt keycodes, Pat Campbell <=