* [Qemu-devel] RE: using Shift- or Num-lock keys on keyboard
@ 2008-09-22 14:11 gg
0 siblings, 0 replies; only message in thread
From: gg @ 2008-09-22 14:11 UTC (permalink / raw)
To: qemu-devel
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-09-22 14:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-22 14:11 [Qemu-devel] RE: using Shift- or Num-lock keys on keyboard gg
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).