From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from forward500p.mail.yandex.net (forward500p.mail.yandex.net [77.88.28.110]) by sourceware.org (Postfix) with ESMTPS id 7A42D3858418 for ; Wed, 13 Jul 2022 06:50:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 7A42D3858418 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=yandex.ru Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=yandex.ru Received: from myt5-69594d4a41fa.qloud-c.yandex.net (myt5-69594d4a41fa.qloud-c.yandex.net [IPv6:2a02:6b8:c12:3ca5:0:640:6959:4d4a]) by forward500p.mail.yandex.net (Yandex) with ESMTP id B8E4BF029C6; Wed, 13 Jul 2022 09:50:01 +0300 (MSK) Received: by myt5-69594d4a41fa.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id tzYUFHxS1b-o1hmSSN8; Wed, 13 Jul 2022 09:50:01 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1657695001; bh=uX8XCvZ4O9OLNsxncQ1VnzY27pOpyxXU0uZ0tCP4Zsg=; h=In-Reply-To:Subject:Date:References:To:Message-ID:Reply-To:From; b=gbeDtIb0OnWtSlXx9ORARV3SRXi4TYBiRF4JJg0RgTOQivi+LNmM/SGYw+R/LuBxs q4BFpUKQKWCJE3rlIbOEr+AX91YRharyLLcXqEgJD/s2aeR5ks1Dbc//Rwwb1WYfYv 28tICH/ognzG/AXxlUE9a44rvAoRrnQToCqLXE44= Authentication-Results: myt5-69594d4a41fa.qloud-c.yandex.net; dkim=pass header.i=@yandex.ru Received: from [192.168.1.10] (HELO daemon2.darkdragon.lan) by daemon2 (Office Mail Server 0.8.12 build 08053101) with SMTP; Wed, 13 Jul 2022 06:49:23 -0000 Date: Wed, 13 Jul 2022 09:49:23 +0300 From: Andrey Repin X-Mailer: The Bat! (v9.3.4) Professional Reply-To: cygwin@cygwin.com Message-ID: <1769664802.20220713094923@yandex.ru> To: Andy Koppe , cygwin@cygwin.com Subject: Re: [mintty] Suppress a key completely In-Reply-To: References: <1099261364.20220710173019@yandex.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_THEBAT, NICE_REPLY_A, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no 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: Wed, 13 Jul 2022 06:50:06 -0000 Greetings, Andy Koppe! >> >> 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 Thanks, it worked. > 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. Will try that one, too, thank you. Yes, keymapper is quite flexible until you get into OEM (3-byte) key codes. > Also, Windows has the builtin Win+Space combination for switching > keyboards, but I expect you've tried that. My fingers are quite old and don't want to bend like that. -- With best regards, Andrey Repin Wednesday, July 13, 2022 09:45:53 Sorry for my terrible english...