ia64/xen-unstable

changeset 14986:1ddaf2650633

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@gmail.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Mon Apr 30 15:06:34 2007 +0100 (2007-04-30)
parents 0f9b97523450
children 5b4a02335182
files tools/ioemu/keymaps/modifiers tools/ioemu/vnc_keysym.h
line diff
     1.1 --- a/tools/ioemu/keymaps/modifiers	Sat Apr 28 09:44:24 2007 +0100
     1.2 +++ b/tools/ioemu/keymaps/modifiers	Mon Apr 30 15:06:34 2007 +0100
     1.3 @@ -3,6 +3,7 @@ Shift_L 0x2a
     1.4  
     1.5  Alt_R 0xb8
     1.6  Mode_switch 0xb8
     1.7 +ISO_Level3_Switch 0xb8
     1.8  Alt_L 0x38
     1.9  
    1.10  Control_R 0x9d
     2.1 --- a/tools/ioemu/vnc_keysym.h	Sat Apr 28 09:44:24 2007 +0100
     2.2 +++ b/tools/ioemu/vnc_keysym.h	Mon Apr 30 15:06:34 2007 +0100
     2.3 @@ -215,6 +215,7 @@ static name2keysym_t name2keysym[]={
     2.4  {"Shift_R", 0xffe2},   /* XK_Shift_R */
     2.5  {"Super_L", 0xffeb},   /* XK_Super_L */
     2.6  {"Super_R", 0xffec},   /* XK_Super_R */
     2.7 +{"ISO_Level3_Shift", 0xfe03}, /* XK_ISO_Level3_Shift */
     2.8  
     2.9      /* special keys */
    2.10  {"BackSpace", 0xff08}, /* XK_BackSpace */