From: Fabian Holler <fabian.holler@profitbricks.com>
To: Anthony Liguori <anthony@codemonkey.ws>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Keysymbol interpretation missing in QEMU's VNC server?
Date: Thu, 8 Mar 2012 23:01:00 +0100 [thread overview]
Message-ID: <20120308220100.GE13550@fholler.de> (raw)
In-Reply-To: <4F5924EA.7010604@codemonkey.ws>
Hello Anthony,
On Thu, Mar 08, 2012 at 03:30:18PM -0600, Anthony Liguori wrote:
> On 03/07/2012 04:53 AM, Fabian Holler wrote:
> >Hello,
> >
> >I'm not sure if I found a bug in QEMU's VNC keyboard layout mapping or
> >if it's a general problem in the implemented VNC server:
> >
> >Scenario:
> >QEMU started with: "-k de"
> >Keyboard layout in VM: de
> >Keyboard layout from Client OS: us
> >
> >What i expect:
> >I type the '/' character on the Client OS (key left from the right-shift-key) on US layout.
> >Keysymbol '/' is send over VNC to the QEMU.
> >QEMU lookup in the de keyboard mapping table for the character '/' and
> >should find the scancodes for the keys shift+'7'.
> >The Scancodes for shift and '7'
>
> This does not exist. There is no such thing as "Scancodes for shift and '7'".
>
> Instead, what's sent to the Client OS is literally, "the key at the
> fourth column, second row".
Yes, I know.
What i actually meant was: with the knowledge of the used
keyboard layout and the key symbol QEMU could figure out that it has to
send scan codes for the keys that are labeled SHIFT & 7 on a keyboard
with DE layout.
Afaik QEMU does this already for the 7 labeled key. But it doesn't
remove/adds additional needed metakey presses like eg Shift.
Or I'm wrong?
The idea was to add these interpretation to also add/remove additional
metakey scancodes for the VM if needed.
> There's really nothing that can be done about this. The way gtk-vnc
> fixes this is by obtaining the actual scancode from the user's
> keyboard. But you can't get this in Java in an applet AFAIK.
The same should work in a Java Applet but you also have to figure out
the used keyboard layout and handle metakeys.
regards
Fabian
next prev parent reply other threads:[~2012-03-08 22:01 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-07 10:53 [Qemu-devel] Keysymbol interpretation missing in QEMU's VNC server? Fabian Holler
2012-03-08 20:24 ` Philipp Hahn
2012-03-08 21:23 ` Fabian Holler
2012-03-08 21:30 ` Anthony Liguori
2012-03-08 22:01 ` Fabian Holler [this message]
2012-05-23 8:16 ` Erik Rull
2012-05-23 8:45 ` Erik Rull
-- strict thread matches above, loose matches on Subject: below --
2012-03-07 12:22 Fabian Holler
2014-01-14 8:45 Gonglei (Arei)
2014-01-25 5:13 Gonglei (Arei)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120308220100.GE13550@fholler.de \
--to=fabian.holler@profitbricks.com \
--cc=anthony@codemonkey.ws \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.