From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32176 invoked by alias); 21 Aug 2011 10:04:29 -0000 Received: (qmail 32161 invoked by uid 22791); 21 Aug 2011 10:04:28 -0000 X-SWARE-Spam-Status: No, hits=-0.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mailout-de.gmx.net (HELO mailout-de.gmx.net) (213.165.64.23) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Sun, 21 Aug 2011 10:04:14 +0000 Received: (qmail invoked by alias); 21 Aug 2011 10:04:13 -0000 Received: from p5B08C60F.dip0.t-ipconnect.de (EHLO [192.168.178.47]) [91.8.198.15] by mail.gmx.net (mp007) with SMTP; 21 Aug 2011 12:04:13 +0200 Message-ID: <4E50D81B.5090906@gmx.de> Date: Sun, 21 Aug 2011 10:04:00 -0000 From: Oliver Schmidt User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0) Gecko/20110812 Thunderbird/6.0 MIME-Version: 1.0 To: cygwin-xfree@cygwin.com Subject: Re: considering modifier keys after gaining focus References: <4E4A8D56.6010704@gmx.de> <20110821084335.GA18237@calimero.vinschen.de> In-Reply-To: <20110821084335.GA18237@calimero.vinschen.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-xfree-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-xfree-owner@cygwin.com Reply-To: cygwin-xfree@cygwin.com Mail-Followup-To: cygwin-xfree@cygwin.com X-SW-Source: 2011-08/txt/msg00051.txt.bz2 Hi Corinna, On 8/21/2011 10:43 AM, Corinna Vinschen wrote: >> However one problem is unsolved: if the key combination for opening >> window B (in the above example) is an AltGr key combination, the >> GetAsyncKeyState will also report, that the Ctrl key is pressed, >> which is not true, since this is the well known Windows fake Ctrl_L > > So, shouldn't something along these lines do the trick: > if (ctrl && altlang) > ctrl = FALSE; thanks! I tried your suggestion and now it is nearly perfect ;-) Only remaining drawback is now, that Ctrl+AltGr key kombinations still don't work when invoking/raising top level windows, but everything else is now working flawless: Ctrl, Shift+Ctrl, Alt, AltGr, Shift+Alt, Shift+AltGr etc. ;-) I think one has to live with the restriction that Ctrl+AltrGr doesn't work under Windows (BTW it works under Linux xserver, wheres Alt+AltGr works neither under Linux nor Windows). Best regards, Oliver -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/