From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Khm91-0000GD-I5 for qemu-devel@nongnu.org; Mon, 22 Sep 2008 10:12:07 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Khm8x-0000FJ-IH for qemu-devel@nongnu.org; Mon, 22 Sep 2008 10:12:07 -0400 Received: from [199.232.76.173] (port=49505 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Khm8x-0000FG-FB for qemu-devel@nongnu.org; Mon, 22 Sep 2008 10:12:03 -0400 Received: from moutng.kundenserver.de ([212.227.126.187]:61699) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Khm8w-0001UI-V8 for qemu-devel@nongnu.org; Mon, 22 Sep 2008 10:12:03 -0400 Message-Id: <7193917.48161222092710949.JavaMail.servlet@kundenserver> From: gg@seh.de MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Date: Mon, 22 Sep 2008 16:11:51 +0200 Subject: [Qemu-devel] RE: using Shift- or Num-lock keys on keyboard Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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