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-3.1-testing] Handle ISO_Level3_Shift keysym as AltG

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-3.1-testing] Handle ISO_Level3_Shift keysym as AltGr in ioemu/vncfb.
From: "Xen patchbot-3.1-testing" <patchbot-3.1-testing@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 02 May 2007 12:50:16 -0700
Delivery-date: Wed, 02 May 2007 13:07: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 kfraser@xxxxxxxxxxxxxxxxxxxxx
# Date 1177941994 -3600
# Node ID 1ddaf2650633ef9217e884c61832fa68317995f5
# Parent  0f9b97523450aae06d42852bdac9bbca3d6033d1
Handle ISO_Level3_Shift keysym as AltGr in ioemu/vncfb.

The modern (xkb) way of mapping the AltGr key (113) seems to be using
the ISO_Level3_Shift keysym (0xFE03) instead of the obsolete
Mode_switch keysym (0xFF7E).

This patch let the "keysym to scancode" translator handle the
ISO_Level3_Shift correctly, enabling the use of characters like
~#{[|`\^@]} on a french keyboard.

From: Cedric Schieli <cschieli@xxxxxxxxx>
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
---
 tools/ioemu/keymaps/modifiers |    1 +
 tools/ioemu/vnc_keysym.h      |    1 +
 2 files changed, 2 insertions(+)

diff -r 0f9b97523450 -r 1ddaf2650633 tools/ioemu/keymaps/modifiers
--- a/tools/ioemu/keymaps/modifiers     Sat Apr 28 09:44:24 2007 +0100
+++ b/tools/ioemu/keymaps/modifiers     Mon Apr 30 15:06:34 2007 +0100
@@ -3,6 +3,7 @@ Shift_L 0x2a
 
 Alt_R 0xb8
 Mode_switch 0xb8
+ISO_Level3_Switch 0xb8
 Alt_L 0x38
 
 Control_R 0x9d
diff -r 0f9b97523450 -r 1ddaf2650633 tools/ioemu/vnc_keysym.h
--- a/tools/ioemu/vnc_keysym.h  Sat Apr 28 09:44:24 2007 +0100
+++ b/tools/ioemu/vnc_keysym.h  Mon Apr 30 15:06:34 2007 +0100
@@ -215,6 +215,7 @@ static name2keysym_t name2keysym[]={
 {"Shift_R", 0xffe2},   /* XK_Shift_R */
 {"Super_L", 0xffeb},   /* XK_Super_L */
 {"Super_R", 0xffec},   /* XK_Super_R */
+{"ISO_Level3_Shift", 0xfe03}, /* XK_ISO_Level3_Shift */
 
     /* special keys */
 {"BackSpace", 0xff08}, /* XK_BackSpace */

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-3.1-testing] Handle ISO_Level3_Shift keysym as AltGr in ioemu/vncfb., Xen patchbot-3.1-testing <=