[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] Handle ISO_Level3_Shift keysym as AltGr in ioemu/vncfb.



# 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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.