From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MeR7E-00078p-SU for qemu-devel@nongnu.org; Fri, 21 Aug 2009 06:13:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MeR79-00077V-Ln for qemu-devel@nongnu.org; Fri, 21 Aug 2009 06:13:00 -0400 Received: from [199.232.76.173] (port=51647 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MeR79-00077P-Hs for qemu-devel@nongnu.org; Fri, 21 Aug 2009 06:12:55 -0400 Received: from mail-fx0-f211.google.com ([209.85.220.211]:58740) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MeR79-0006e5-6Q for qemu-devel@nongnu.org; Fri, 21 Aug 2009 06:12:55 -0400 Received: by fxm7 with SMTP id 7so448864fxm.34 for ; Fri, 21 Aug 2009 03:12:53 -0700 (PDT) Date: Fri, 21 Aug 2009 12:12:50 +0200 From: "fkater@googlemail.com" Message-ID: <20090821101250.GE3549@comppasch2> References: <20090817142759.GC3548@comppasch2> <4A8AB344.4080004@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <4A8AB344.4080004@redhat.com> Subject: [Qemu-devel] Re: trouble when ctrl/caps key swapped by X List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Avi Kivity Cc: qemu-devel@nongnu.org, kvm@vger.kernel.org Avi Kivity: > On 08/17/2009 05:27 PM, fkater@googlemail.com wrote: > > I have the ctrl/caps keys swapped by X in xorg.conf: > > > > Option "XkbOptions" "ctrl:swapcaps" > > > > The fact that this is not honoured by the guest (win2k) > > might be intended or acceptable. > > > > However, when switching from the guest window to the host > > and vice versa using the key combination Ctrl-Tab, the guest > > additionally interprets that as a Caps Lock stroke. This is > > of couse not intended. > > > > The result: After each Ctrl-Tab switch, win2k is alternates > > between Caps Lock on an off... > > > > This does of course not happen when using a mouse click into > > the guest window for switching to the guest. > > Does swapping the keys in the guest work? Not really: This is the result for keys pressed in a cmd.exe: If Ctrl-f is pressed (Ctrl key is originally Caps Lock), then you simply get an uppercase F (like when pressed Shift-f). If Caps Lock is pressed once (Caps Lock key is originally Ctrl key), then all following keys are interpreted as escaped letters (like when pressed with Ctrl normally): * press Caps Lock once * type f -> get ^F * type g -> get ^G * press Caps Lock once again to undo this behaviour Note: There is also a registry hack under windows to swap the Ctrl and Caps Lock keys which does makes things even more confusing though. Thank You Felix