qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] Bug in SDL key event processing


From: Anthony Liguori
Subject: Re: [Qemu-devel] Bug in SDL key event processing
Date: Thu, 10 Jul 2008 17:03:23 -0500
User-agent: Thunderbird 2.0.0.14 (X11/20080501)

Samuel Thibault wrote:
Anthony Liguori, le Thu 10 Jul 2008 14:25:05 -0500, a écrit :
Keep in mind that using '-k' completely changes the semantics of the keyboard. I'm using the colemak layout, so my top row is: qwfpg. For the sake of simplicity, assume that the guest uses the standard en-us layout.
Then you would need to add a colemak translation table if you wanted that to be reflected in the guest. However, if you use -k en-us and use en-us in the guest, it should just work for you.

That won't for the shifted characters. Let's take for instance azerty,
which has the numbers in the shifted position instead of the direct
position. Typing shift+1 will produce a 1 keysym, which will indeed be
converted to the correct scancode, but shift will be simulated too, and
thus produce in the guest '!'...

Yes, unfortunately, I don't see a great way to fix that :-/ You basically have to have the guest also set up to use azerty.

 There is no other correct than properly
reverse-engineering the keysyms we get into a positional keycode, and
then convert to PS2 scancode, and let the guest use its keymaps..

Which is what we're trying to do. The issue is that the keysyms=>positional keycode mapping is 1->many. That's what the -k mappings are selecting.

Regards,

Anthony Liguroi

Samuel







reply via email to

[Prev in Thread] Current Thread [Next in Thread]