]> xenbits.xensource.com Git - qemu-xen-unstable.git/commit
ioemu: fix VNC altgr-insert behavior
authorIan Jackson <ian.jackson@eu.citrix.com>
Tue, 14 Sep 2010 16:31:43 +0000 (17:31 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Tue, 14 Sep 2010 16:31:43 +0000 (17:31 +0100)
commitf95d202ed6444dacb15fbea4dee185eb0e048d9a
tree916e2d7c0c4c955ac7a90c5e13d46d3c9f36471b
parent6abea57078be8d325dbc67c45866fdb70cc2764b
ioemu: fix VNC altgr-insert behavior

When access to a Xen DomU (Linux) from a VNC client in Windows, alt-gr
key is not working properly with Spanish keyboard. When Alt + another
key pressed, vncserver receives Altgr down, Altgr up and key down
messages in order, that causes incorrect output.

With following patch, when vncerver receives key down message, it
first check if the keysym needs altgr modifer, if it needs altgr
modifier but altgr is not 'down', sending altgr keycode before sending
key keycode.

Signed-off-by: Chunyan Liu <cyliu@novell.com>
keymaps.c
vnc.c