qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Eduardo Felipe" <edusaper@gmail.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] vnc with german keymap
Date: Wed, 4 Jul 2007 10:09:36 +0200	[thread overview]
Message-ID: <83a4d4ca0707040109o242dc1f9s7e5c8c046baf2f6a@mail.gmail.com> (raw)
In-Reply-To: <20070704002405.GA26287@saturn.kn-bremen.de>

[-- Attachment #1: Type: text/plain, Size: 1793 bytes --]

Hi,

Some time ago I made a patch to handle keyboard localization for vnc:

http://lists.gnu.org/archive/html/qemu-devel/2006-08/msg00129.html

It is outdated and most probably won't apply to current CVS, but with some
tweaking it can improve things a bit.

Regads,
Eduardo Felipe


2007/7/4, Juergen Lock <nox@jelal.kn-bremen.de>:
>
> Hi!
>
> I got a report yesterday of -vnc not working right with german
> keymaps (I hadn't really played with -vnc yet so I hadn't noticed),
> and came up with the following hack: (which still needs -k de,
> that just wasn't enough)
>
> Index: qemu/vnc.c
> @@ -763,7 +763,31 @@
> {
>      int keycode;
>
> +#if 1
> +    /* XXX fixup some de keysyms (use with -k de) */
> +    if ((sym & 0xffff) == 0xfe03)    /* Alt_Gr -> Alt_R */
> +       sym = 0xffea;
> +    if ((sym & 0xffff) == 0xfe50)    /* grave */
> +       sym = '`';
> +#if 0
> +    if ((sym & 0xffff) == 0xfe51)    /* '/acute (gets mixed up with #) */
> +       sym = '\'';
> +#endif
> +    if ((sym & 0xffff) == 0xfe52)    /* asciicircum */
> +       sym = '^';
> +    if ((sym & 0xffff) == 0xfe53)    /* asciitilde */
> +       sym = '~';
> +#endif
>      keycode = keysym2scancode(vs->kbd_layout, sym & 0xFFFF);
> +#if 1
> +    /* '/acute key needs special treatment */
> +    if (!keycode && (sym & 0xffff) == 0xfe51)    /* acute */
> +       keycode = 0xd;
> +#endif
> +#ifdef VNCDEBUGKEYS
> +    printf("do_key_event down %d, sym 0x%x, keycode 0x%x\n",
> +       down, (int) sym, keycode);
> +#endif
>
>      /* QEMU console switch */
>      switch(keycode) {
>
> I wasn't able to fix this by editing vnc_keysym.h and/or keymaps
> because those dont take duplicate definitions, but this is certainly
> `somewhat' ugly; anyone care to fix it for real? :)
>
> Thanx,
>         Juergen
>
>
>

[-- Attachment #2: Type: text/html, Size: 2966 bytes --]

  reply	other threads:[~2007-07-04  8:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-04  0:24 [Qemu-devel] vnc with german keymap Juergen Lock
2007-07-04  8:09 ` Eduardo Felipe [this message]
2007-07-04 19:48   ` Juergen Lock
2007-07-05  9:44     ` Eduardo Felipe
     [not found]     ` <83a4d4ca0707050142m3cd2fb93w30c3dbe61d33c610@mail.gmail.com>
     [not found]       ` <20070706170805.GA7833@saturn.kn-bremen.de>
2007-07-07 15:44         ` Eduardo Felipe

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=83a4d4ca0707040109o242dc1f9s7e5c8c046baf2f6a@mail.gmail.com \
    --to=edusaper@gmail.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).