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 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 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 Date: Wed, 13 Jul 2022 09:49:23 +0300 From: Andrey Repin X-Mailer: The Bat! (v9.3.4) Professional Message-ID: <1769664802.20220713094923@yandex.ru> To: Andy Koppe , cygwin AT cygwin DOT com Subject: Re: [mintty] Suppress a key completely In-Reply-To: References: <1099261364 DOT 20220710173019 AT yandex DOT ru> MIME-Version: 1.0 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 AT cygwin DOT 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: , Reply-To: cygwin AT cygwin DOT com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" 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... -- 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