From: gg@seh.de
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] RE: using Shift- or Num-lock keys on keyboard
Date: Mon, 22 Sep 2008 16:11:51 +0200 [thread overview]
Message-ID: <7193917.48161222092710949.JavaMail.servlet@kundenserver> (raw)
Hi,
since nobody answer my question, I search for this bug again and found
this bugfix. (http://groups.google.com/group/linux.debian.bugs.dist/browse_thread/thread/044db1f25ff8e642/4e34e7cb4757e982)
I found some more people with the same problem.
The patch was not applied in the current SVN version.
To fix my problem it is only important to take the sdl.c bugfix like:
RCS file: /sources/qemu/qemu/sdl.c,v
retrieving revision 1.42
diff -u -r1.42 sdl.c
--- sdl.c 21 Jun 2007 21:08:02 -0000 1.42
+++ sdl.c 28 Aug 2007 04:09:19 -0000
@@ -201,9 +201,9 @@
break;
case 0x45: /* num lock */
case 0x3a: /* caps lock */
- /* SDL does not send the key up event, so we generate it */
- kbd_put_keycode(keycode);
- kbd_put_keycode(keycode | 0x80);
+ if (ev->type == SDL_KEYUP)
+ kbd_put_keycode(keycode | 0x80);
+ else kbd_put_keycode(keycode);
return;
}
So I think that the button event was send twice without this fix.
As "Ricardo Ribalda Delgado" told.
This patch works fine for me.
Thanks,
Gregor Glomm
>Hi,
>
>I use Ubuntu 8.04 with the last qemu/kvm version. (kvm-75)
>My guest system is windows_xp prof. sp2.
>The keyboard option ist "-k en-us".
>Now I see that the Shift- or Num-lock keys not work.
>Have someone a hint how to fix this?
>
>Thanks,
>
>Gregor Glomm
reply other threads:[~2008-09-22 14:12 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=7193917.48161222092710949.JavaMail.servlet@kundenserver \
--to=gg@seh.de \
--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).