* [mintty] Suppress a key completely
@ 2022-07-10 14:30 Andrey Repin
2022-07-12 21:31 ` Andy Koppe
0 siblings, 1 reply; 3+ messages in thread
From: Andrey Repin @ 2022-07-10 14:30 UTC (permalink / raw)
To: All
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?
--
With best regards,
Andrey Repin
Sunday, July 10, 2022 16:44:16
Sorry for my terrible english...
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [mintty] Suppress a key completely
2022-07-10 14:30 [mintty] Suppress a key completely Andrey Repin
@ 2022-07-12 21:31 ` Andy Koppe
2022-07-13 6:49 ` Andrey Repin
0 siblings, 1 reply; 3+ messages in thread
From: Andy Koppe @ 2022-07-12 21:31 UTC (permalink / raw)
To: cygwin
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [mintty] Suppress a key completely
2022-07-12 21:31 ` Andy Koppe
@ 2022-07-13 6:49 ` Andrey Repin
0 siblings, 0 replies; 3+ messages in thread
From: Andrey Repin @ 2022-07-13 6:49 UTC (permalink / raw)
To: Andy Koppe, 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...
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-07-13 6:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-10 14:30 [mintty] Suppress a key completely Andrey Repin
2022-07-12 21:31 ` Andy Koppe
2022-07-13 6:49 ` Andrey Repin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).