Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KIQVz-0001jY-5o for qemu-devel@nongnu.org; Mon, 14 Jul 2008 12:03:03 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KIQVy-0001j3-7g for qemu-devel@nongnu.org; Mon, 14 Jul 2008 12:03:02 -0400 Received: from [199.232.76.173] (port=58727 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KIQVy-0001iv-26 for qemu-devel@nongnu.org; Mon, 14 Jul 2008 12:03:02 -0400 Received: from smtp02.citrix.com ([66.165.176.63]:50910) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KIQVx-0003Kg-Mk for qemu-devel@nongnu.org; Mon, 14 Jul 2008 12:03:01 -0400 Received: from mariner.uk.xensource.com ([10.80.2.22]) by smtp01.ad.xensource.com (8.13.1/8.13.1) with ESMTP id m6EG2xCB013407 for ; Mon, 14 Jul 2008 09:02:59 -0700 Received: from iwj by mariner.uk.xensource.com with local (Exim 4.63) (envelope-from ) id 1KIQVm-0003Hs-Kn for qemu-devel@nongnu.org; Mon, 14 Jul 2008 17:02:50 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18555.30890.637466.506702@mariner.uk.xensource.com> Date: Mon, 14 Jul 2008 17:02:50 +0100 Subject: Re: [Qemu-devel] Bug in SDL key event processing In-Reply-To: <20080710215524.GB4579@implementation> References: <20080709235516.GM4889@implementation> <48755320.5090707@dbservice.com> <48757FB8.8010400@codemonkey.ws> <4875C0B6.2060302@dbservice.com> <4876101A.1080800@codemonkey.ws> <487611FC.5070500@dbservice.com> <487616BB.8020402@dbservice.com> <48761F31.4090909@codemonkey.ws> <48762C59.9010204@dbservice.com> <48766211.2090304@codemonkey.ws> <20080710215524.GB4579@implementation> From: Ian Jackson 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 Samuel Thibault writes ("Re: [Qemu-devel] Bug in SDL key event processing"): > That won't for the shifted characters. Let's take for instance azerty, > which has the numbers in the shifted position instead of the direct > position. Typing shift+1 will produce a 1 keysym, which will indeed be > converted to the correct scancode, but shift will be simulated too, and > thus produce in the guest '!'... There is no other correct than properly > reverse-engineering the keysyms we get into a positional keycode, and > then convert to PS2 scancode, and let the guest use its keymaps.. Well, one alternative approach would be to simulate a shift down event, followed by the key in question, followed by a shift up event. Ian.