From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3354 invoked by alias); 19 Aug 2011 13:51:00 -0000 Received: (qmail 3315 invoked by uid 22791); 19 Aug 2011 13:50:38 -0000 X-Spam-Check-By: sourceware.org Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.83/v0.83-20-g38e4449) with ESMTP; Fri, 19 Aug 2011 13:50:23 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id 9CEF42C00F3; Fri, 19 Aug 2011 15:50:20 +0200 (CEST) Date: Fri, 19 Aug 2011 13:51:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: Issue with inserting '@' at the command prompt. Message-ID: <20110819135020.GA6794@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <20110713130550.GH13500@calimero.vinschen.de> <20110713133713.GD4018@const> <20110713190028.GA4742@calimero.vinschen.de> <20110714101609.GF2125@calimero.vinschen.de> <20110714105621.GJ2853@lamasti.net> <20110714124214.GE5619@const> <20110819023740.GL4919@type.famille.thibault.fr> <20110819115019.GA12612@calimero.vinschen.de> <20110819131459.GO4919@type.famille.thibault.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20110819131459.GO4919@type.famille.thibault.fr> User-Agent: Mutt/1.5.21 (2010-09-15) Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2011-08/txt/msg00352.txt.bz2 On Aug 19 15:14, Samuel Thibault wrote: > Corinna Vinschen, le Fri 19 Aug 2011 13:50:19 +0200, a écrit : > > > .wVirtualKeyCode = 0x630, > > Eergl, no, that should have been 0x30 here, our code does properly masks > out the high part, I just missed that in our code. And what about the control code? It's a fixed 1 in your example, but obviously it should be 6. > > a simple testcase (wow!) > > Sorry, but I'm not paid for this, I don't actually use the software at > all (neither brltty nor windows), don't actually own the hardware (thus > had to emulate it in qemu by first reverse-engineering the actual device > behavior), Same here. I tested this on a Qemu/KVM driven W7 box. > it just seems I'm the only guy in the world that knows a bit > about both brltty and windows and knows that some people *need* it, and > I thus spend time on it, and it was already almost 5am... > > > /* Create correct CtrlKeyState from high byte returned by VkKeyScanW. */ > > if (vks & 0x100) > > ctrl |= SHIFT_PRESSED; > > if (vks & 0x200) > > ctrl |= RIGHT_CTRL_PRESSED; > > if (vks & 0x400) > > ctrl |= RIGHT_ALT_PRESSED; > > Err, do you mean LEFT_ALT_PRESSED here? Right alt is altgr in some > keyboard layouts, which is precisely what people use to type '@' in > the french layout, actually. E.g. LeftAlt-A and RightAlt-A (i.e. I'm aware of this difference, so, no, that was a deliberate RIGHT_ALT_PRESSED. However, this also works for me when using LEFT_CTRL_PRESSED and LEFT_ALT_PRESSED in the conditionals above. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple