This is the mail archive of the
cygwin-xfree
mailing list for the Cygwin XFree86 project.
Re: considering modifier keys after gaining focus
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/