diff options
author | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-04-30 15:06:34 +0100 |
---|---|---|
committer | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-04-30 15:06:34 +0100 |
commit | e050e9784befb67c31cb87b5767cc8d715883888 (patch) | |
tree | 083faa126e7e5002e4cc16466bf93a94b67c23e7 | |
parent | 14d89699f416d5bb5a75d5e31f93a68dce38962c (diff) | |
download | xen-e050e9784befb67c31cb87b5767cc8d715883888.tar.gz xen-e050e9784befb67c31cb87b5767cc8d715883888.tar.bz2 xen-e050e9784befb67c31cb87b5767cc8d715883888.zip |
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>
-rw-r--r-- | tools/ioemu/keymaps/modifiers | 1 | ||||
-rw-r--r-- | tools/ioemu/vnc_keysym.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/tools/ioemu/keymaps/modifiers b/tools/ioemu/keymaps/modifiers index d8b019f040..350cb798d7 100644 --- a/tools/ioemu/keymaps/modifiers +++ b/tools/ioemu/keymaps/modifiers @@ -3,6 +3,7 @@ Shift_L 0x2a Alt_R 0xb8 Mode_switch 0xb8 +ISO_Level3_Switch 0xb8 Alt_L 0x38 Control_R 0x9d diff --git a/tools/ioemu/vnc_keysym.h b/tools/ioemu/vnc_keysym.h index 5c47104442..9c6c05f8cf 100644 --- a/tools/ioemu/vnc_keysym.h +++ b/tools/ioemu/vnc_keysym.h @@ -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 */ |