Skip to contentSkip to conversation

Support AltGr in VNC

PATCH New Andreas Schneider 1 participant 1 message Dec 12, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Support AltGr in VNC

Hi,

to type and @ or a \ with a German keyboard layout you need the AltGr key. Attached is patch which adds support for the AltGr key to the VNC mode.

Cheers,

-- andreas

Signature · 2 lines
Andreas Schneider, SUSE Labs, http://www.suse.de/
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg)
qemu/keymaps/modifiers +1 -0
Index: kvm-78/qemu/keymaps/modifiers
===================================================================
@@ -3,6 +3,7 @@ Shift_L 0x2a
 
 Alt_R 0xb8
 Mode_switch 0xb8
+Alt_Gr 0xb8
 Alt_L 0x38
 
 Control_R 0x9d
qemu/vnc_keysym.h +1 -0
Index: kvm-78/qemu/vnc_keysym.h
===================================================================
@@ -208,6 +208,7 @@ static const name2keysym_t name2keysym[]
 {"Control_R", 0xffe4}, /* XK_Control_R */
 {"Alt_L", 0xffe9},     /* XK_Alt_L */
 {"Alt_R", 0xffea},     /* XK_Alt_R */
+{"Alt_Gr", 0xfe03},    /* XK_ISO_Level3_Shift */
 {"Caps_Lock", 0xffe5}, /* XK_Caps_Lock */
 {"Meta_L", 0xffe7},    /* XK_Meta_L */
 {"Meta_R", 0xffe8},    /* XK_Meta_R */