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-devel

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

To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] Handle ISO_Level3_Shift keysym as AltGr in ioemu/vncfb
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
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=t66a7mMix0LIZ8EDxG8XP/zEcZFM7u/Sg4yFyIdJURYRFgD3TEyU7SWIV8d3m+FMSr/RfzzAUdevNUmg61R/KcUWtkFX46lHaYxGEtPGFJJhWNMDg/k+OKnlN3JZRlqC1E+U+AfT0LtK/swy8pY8jXY2NaEp0a3y9O2Id+uZVN4=
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=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Handle ISO_Level3_Shift keysym as AltGr in ioemu/vncfb, Cédric Schieli <=