X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.2 required=5.0 tests=AWL,BAYES_00,TW_QE X-Spam-Check-By: sourceware.org Date: Fri, 19 Aug 2011 15:14:59 +0200 From: Samuel Thibault To: cygwin AT cygwin DOT com Subject: Re: Issue with inserting '@' at the command prompt. Message-ID: <20110819131459.GO4919@type.famille.thibault.fr> Mail-Followup-To: cygwin AT cygwin DOT com References: <20110713130550 DOT GH13500 AT calimero DOT vinschen DOT de> <20110713133713 DOT GD4018 AT const> <20110713190028 DOT GA4742 AT calimero DOT vinschen DOT de> <20110714101609 DOT GF2125 AT calimero DOT vinschen DOT de> <20110714105621 DOT GJ2853 AT lamasti DOT net> <20110714124214 DOT GE5619 AT const> <20110819023740 DOT GL4919 AT type DOT famille DOT thibault DOT fr> <20110819115019 DOT GA12612 AT calimero DOT vinschen DOT de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20110819115019.GA12612@calimero.vinschen.de> User-Agent: Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30) X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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. > 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), 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. altgr-a) is not the same in such layouts. In the past we were using left_ctrl+left_alt, but this was not working in DOS applications in cmd, so we made it a special case by using right alt instead. I have now added right control along right alt, which indeed fixes the issue, I am apparently unable to run DOS applications in my XP installation, but I hope it will also work there. Thanks, Samuel -- 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