public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Andy Koppe <andy.koppe@gmail.com>
To: cygwin@cygwin.com
Subject: Re: [mintty] Suppress a key completely
Date: Tue, 12 Jul 2022 22:31:03 +0100	[thread overview]
Message-ID: <CAHWeT-akFT7tHcAHt0fhKBQOanukY+_7AxK6sQXduNoV-dsVSw@mail.gmail.com> (raw)
In-Reply-To: <1099261364.20220710173019@yandex.ru>

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

  reply	other threads:[~2022-07-12 21:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-10 14:30 Andrey Repin
2022-07-12 21:31 ` Andy Koppe [this message]
2022-07-13  6:49   ` Andrey Repin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAHWeT-akFT7tHcAHt0fhKBQOanukY+_7AxK6sQXduNoV-dsVSw@mail.gmail.com \
    --to=andy.koppe@gmail.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).