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

[Xen-devel] [PATCH] Handle ISO_Level3_Shift keysym as AltGr in ioemu/vncfb


  • To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: "Cédric Schieli" <cschieli@xxxxxxxxx>
  • Date: Mon, 30 Apr 2007 12:13:32 +0200
  • Delivery-date: Mon, 30 Apr 2007 03:12:00 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=Q/GENPFZ/Dd5oQ+OieNU3C92fpoPDmINRo53nSM2fdX/Nqv8PwnNXjTQWDjT00CzIGPofjOuXgm/WN/vwy4WO0a5IsuXwabpoZ1l+IGyv1pxyr5wz1d2FUD5iL3KYokEtzbq9B3DQ6U4C8Yd1LDyc4c5nuGx5JhIBbdIh3OYAK4=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

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édric


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 */

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

 


Rackspace

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