delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/03/05/19:10:33

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Mon, 5 Mar 2001 18:49:50 -0500
From: Christopher Faylor <cgf AT redhat DOT com>
To: Corinna Vinschen <cygwin AT cygwin DOT com>
Subject: Re: Patch submission for AltGr handling
Message-ID: <20010305184950.A836@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: Corinna Vinschen <cygwin AT cygwin DOT com>
References: <Pine DOT WNT DOT 4 DOT 32 DOT 0102271412560 DOT -519797 AT tiller2 DOT ventritex DOT com> <Pine DOT WNT DOT 4 DOT 32 DOT 0102271412560 DOT -519797 AT tiller2 DOT ventritex DOT com> <20010305194419 DOT R1398 AT cygbert DOT vinschen DOT de> <4 DOT 3 DOT 2 DOT 7 DOT 2 DOT 20010305211847 DOT 024e2d60 AT mail DOT danbbs DOT dk>
Mime-Version: 1.0
User-Agent: Mutt/1.3.11i
In-Reply-To: <4.3.2.7.2.20010305211847.024e2d60@mail.danbbs.dk>; from degnbol@danbbs.dk on Tue, Mar 06, 2001 at 12:28:18AM +0100

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019