This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Patch submission for AltGr handling
- To: Corinna Vinschen <cygwin at cygwin dot com>
- Subject: Re: Patch submission for AltGr handling
- From: Christopher Faylor <cgf at redhat dot com>
- Date: Mon, 5 Mar 2001 18:49:50 -0500
- References: <Pine.WNT.4.32.0102271412560.-519797@tiller2.ventritex.com> <Pine.WNT.4.32.0102271412560.-519797@tiller2.ventritex.com> <20010305194419.R1398@cygbert.vinschen.de> <4.3.2.7.2.20010305211847.024e2d60@mail.danbbs.dk>
- Reply-To: cygwin at cygwin dot com
On Tue, Mar 06, 2001 at 12:28:18AM +0100, Gunnar Degnbol wrote:
>At 19:44 05-03-2001 +0100, Corinna Vinschen wrote:
>>Hi Jason,
>>
>>we just talked on cygwin-developers about your patch.
>>
>>Could you please resubmit a patch which doesn't introduce
>>another CYGWIN option but instead uses automatic recognition
>>of the current keyboard setting? For example the expression
>>
>>if (PRIMARYLANGID (LOWORD (GetKeyboardLayout (0)) == LANG_ENGLISH)
>>
>>should work.
>>
>>Thanks,
>>Corinna
>This checks if any characters are produced using the altgr key (altgr is
>converted to ctrl+alt):
>
>altgr = FALSE;
>for (i = 32; i < 256; i++) {
> vk = VkKeyScan((char)i);
> if (vk != -1 && (vk & 0x600) == 0x600) { /* ctrl+alt */
> altgr = TRUE;
> break;
> }
>}
I'm not sure how this is useful since it bypasses Cygwin entirely.
cgf
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple