delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2022/07/12/17:31:54

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 74D2E3852742
Authentication-Results: sourceware.org;
dmarc=pass (p=none dis=none) header.from=gmail.com
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to;
bh=GiNwU9g7FbW4VY+I5ZbtknEGbGznkR3nKmY6fR/R+g8=;
b=IvNodJDwwHbEkpWgha+z1wi2ZMWmxc5fHxxz3k/+2SH8ejl+QMsXxwZdz6lCjZwSmL
A468ub2aX6uALArn0a4JCkfFfHk7VgFQxOec1Oa4OQXpAtOMMsFqmA+bY4rROxxnB4r1
LZpRdWdQD/Lsv4haEiHkC1w6jAR3ewpADvq+bw2dIntGiRA36CyeqE1WceOrKPVqX3Ck
v0n/d95GGO8fuNPE78inrWMiRsrZviq3t6Mlrqi6QYfn/ApB2rJz87vIEkH6kWRRP3af
Tdd0E34jn1C98qAB8Z8iBx1v3AqjPAwzHBurzW2xl39Se1qNDZNy35gHTxT8fqPjPwi5
ObEA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to;
bh=GiNwU9g7FbW4VY+I5ZbtknEGbGznkR3nKmY6fR/R+g8=;
b=YcirTQvJjpvjk+H85aryHxY3CILMsa4XkfyrE40F/w1cRMmf0t3wRlfUzZP0x6eEy2
dVLaxjwOYWJ7DFPGx4yLn/tYBDQlF1S60800Clf6et1IL/jekQNRtKGvRqy/01vcByal
LQXKcrzJLm4bREwg0Xjhu+88jOeEy6c3DI8yskdMGDtacvw8A7GzE7qRbJomz12ROX8B
RgYQQU6pWI4z/3NNOHIQjxT1rmBqDMRCUF7VAP9jNlGaSyg61Bt1TwwM83OVM1XtqIVu
1quqKEWSFOQakAPUEMFFqwhtVSa5+PQ3rE73zHQYtRjzEBl9fFRnAgu/VjFKg00/FEe0
Rb0Q==
X-Gm-Message-State: AJIora/Gk5Rc2szsv0hUdWtqEK4LgolPYOuzGJqz2yEOgwG1wodUnpSu
/onfZBjzPbPmWfjN8FEcpHoO+1wJmzx4idZ33IEslMTtBas=
X-Google-Smtp-Source: AGRyM1teRRtkFrBiJRVaGO96TmqE9DknTRWhF6W+JpA/Xc1J8xX1flL6lR+KwG29OaWg2eDUww9b6X60KGPtvplHF0I=
X-Received: by 2002:a05:6870:561e:b0:10c:5fc6:cbff with SMTP id
m30-20020a056870561e00b0010c5fc6cbffmr99919oao.149.1657661475820; Tue, 12 Jul
2022 14:31:15 -0700 (PDT)
MIME-Version: 1.0
References: <1099261364 DOT 20220710173019 AT yandex DOT ru>
In-Reply-To: <1099261364.20220710173019@yandex.ru>
From: Andy Koppe <andy DOT koppe AT gmail DOT com>
Date: Tue, 12 Jul 2022 22:31:03 +0100
Message-ID: <CAHWeT-akFT7tHcAHt0fhKBQOanukY+_7AxK6sQXduNoV-dsVSw@mail.gmail.com>
Subject: Re: [mintty] Suppress a key completely
To: cygwin AT cygwin DOT com
X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,
SPF_HELO_NONE, SPF_PASS, TXREP,
T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

On Sun, 10 Jul 2022 at 15:35, Andrey Repin wrote:
>
> Greetings, All!
>
> I'm experimenting with programs to replace my current keyboard switcher (which
> is good, but do not behave well with "modern" idiotic applications based on
> Chromium/Electron).
> found one that works nearly exactly as I'd like, but one problem had arisen:
> to implement non-intrusive "CapsLock as keyboard switch" functionality, it
> using native Windows functionality to remap the key to F24, and use that one
> to switch layouts. Everything is good until I launch mintty, where every press
> of the key prints "5~" in console in addition to switching the layout.
> I suppose it is in its own right on this one (the key is real, after all), but
> is there a way to filter the key so that it does not get down to the
> applications?

Hi Andrey,

I think adding this setting to the .minttyrc should do the job:

KeyFunctions=F24:void

Alternatively, if you get a choice in the matter, you might want to
use the even more obscure yet quite fittingly named VK_SELECT (0x29)
as your switching keycode.

Also, Windows has the builtin Win+Space combination for switching
keyboards, but I expect you've tried that.

Regards,
Andy

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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