From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oa1-x2a.google.com (mail-oa1-x2a.google.com [IPv6:2001:4860:4864:20::2a]) by sourceware.org (Postfix) with ESMTPS id 74D2E3852742 for ; Tue, 12 Jul 2022 21:31:16 +0000 (GMT) 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 Received: by mail-oa1-x2a.google.com with SMTP id 586e51a60fabf-f2a4c51c45so11899789fac.9 for ; Tue, 12 Jul 2022 14:31:16 -0700 (PDT) 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.20220710173019@yandex.ru> In-Reply-To: <1099261364.20220710173019@yandex.ru> From: Andy Koppe Date: Tue, 12 Jul 2022 22:31:03 +0100 Message-ID: Subject: Re: [mintty] Suppress a key completely To: cygwin@cygwin.com Content-Type: text/plain; charset="UTF-8" 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@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jul 2022 21:31:17 -0000 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