From: "=?ISO-8859-1?Q?C=E9dric_Schieli?=" Subject: [PATCH] Handle ISO_Level3_Shift keysym as AltGr in ioemu/vncfb Date: Mon, 30 Apr 2007 12:13:32 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1541335212==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel List-Id: xen-devel@lists.xenproject.org --===============1541335212== Content-Type: multipart/alternative; boundary="----=_Part_647_18541215.1177928012013" ------=_Part_647_18541215.1177928012013 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hello, 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. Regards, C=E9dric diff -ur source/tools/ioemu/keymaps/modifiers build-tools/tools/ioemu/keymaps/modifiers --- source/tools/ioemu/keymaps/modifiers 2007-04-28 11:28: 59.000000000 +0200 +++ build-tools/tools/ioemu/keymaps/modifiers 2007-04-30 10:44: 50.380307142 +0200 @@ -3,6 +3,7 @@ Alt_R 0xb8 Mode_switch 0xb8 +ISO_Level3_Shift 0xb8 Alt_L 0x38 Control_R 0x9d diff -ur source/tools/ioemu/vnc_keysym.h build-tools/tools/ioemu/vnc_keysym.h --- source/tools/ioemu/vnc_keysym.h 2007-04-28 11:28:59.000000000 +0200 +++ build-tools/tools/ioemu/vnc_keysym.h 2007-04-30 10:43: 53.820772392 +0200 @@ -215,6 +215,7 @@ {"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 */ ------=_Part_647_18541215.1177928012013 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hello,


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

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


Regards,
C=E9dric


diff -ur source/tools/ioemu/key= maps/modifiers build-tools/tools/ioemu/keymaps/modifiers
--- source/tool= s/ioemu/keymaps/modifiers        2007-04= -28 11:28:59.000000000 +0200
+++ build-tools/tools/ioemu/keymaps/modifie= rs   2007-04-30 10:44: 50.380307142 +0200
@@ -3,6 +3,7 @@

 Alt_R 0xb8
 Mode= _switch 0xb8
+ISO_Level3_Shift 0xb8
 Alt_L 0x38

 Con= trol_R 0x9d
diff -ur source/tools/ioemu/vnc_keysym.h build-tools/tools/i= oemu/vnc_keysym.h
--- source/tools/ioemu/vnc_keysym.h     2007-04-28 = 11:28:59.000000000 +0200
+++ build-tools/tools/ioemu/vnc_keysym.h &= nbsp;      2007-04-30 10:43:53.820772392 +0200
= @@ -215,6 +215,7 @@
 {"Shift_R", 0xffe2},   /* = XK_Shift_R */
 {"Super_L", 0xffeb},   /* XK_Super_L */
&n= bsp;{"Super_R", 0xffec},   /* XK_Super_R */
+{"= ISO_Level3_Shift", 0xfe03},     /* XK_ISO_Level3_S= hift */

     /* special keys */
 {"= BackSpace", 0xff08}, /* XK_BackSpace */

------=_Part_647_18541215.1177928012013-- --===============1541335212== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1541335212==--