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-changelog

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

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] qemu: add 0xe0 prefix to r-ctrl and r-alt keycodes
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 15 May 2008 04:40:12 -0700
Delivery-date: Thu, 15 May 2008 04:40:14 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] qemu: add 0xe0 prefix to r-ctrl and r-alt keycodes, Xen patchbot-unstable <=