unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Alan Davis <alan3davis@gmail.com>
To: Dmitry Alexandrov <dag@gnui.org>
Cc: help-gnu-emacs <help-gnu-emacs@gnu.org>,
	Yuri Khan <yuri.v.khan@gmail.com>
Subject: Re: N-key rollover keyboards
Date: Mon, 3 Aug 2020 14:48:34 -0700	[thread overview]
Message-ID: <CAF+xKT4HYLcVbutSduXrP1qOFBU7fjbPiDXqZoMYw5TFOt39-Q@mail.gmail.com> (raw)
In-Reply-To: <v9hzegqh.dag@gnui.org>

Thank you.  An impressive bit of coding.  Executing this code in emacs,
then serially typing in various keys, combinations results in an "ok" in
the minibuffer.  There was one combination that executed an i3 command anv
moved the window to the other display.   This gives me something to work
on.  An emacs instance in a terminal ($emacs -nw ) om either urxvt or st
gives the same result.  I wonder why the combination Shift-Ctrl-B passes
through to i3 and is executed, but not other commands.   This is so in
either of these terminals as well as in an emacs window.

Is there a similar tool that can be used in bash?

Alan Davis




On Mon, Aug 3, 2020 at 11:17 AM Dmitry Alexandrov <dag@gnui.org> wrote:

> Alan Davis <alan3davis@gmail.com> wrote:
> > On Sun, Aug 2, 2020, 10:04 Dmitry Alexandrov <dag@gnui.org> wrote:
> >> FWIW, N-key rollover is not really about USB or protocols; itʼs about
> circuit of the keyboard.
> >>
> >> It does matter, when you reconfigure modifiers in a human-friendly way,
> that is move one of the ‘controls’ (normally, the left one) closer to
> ‘space’ — under your thumb — (ctrl:swap_lalt_lctl setxkbmap(1) -option or
> equivalent).
> >>
> >> Then, on many ordinary keyboards few combinations, that are in use in
> Emacs, are indeed get ‘ghosted’.  And M-C-b with inner M- and C- is a very
> likely variant.
> >>
> >> Two-key chords can never be affected, of course.
> >
> > 'ghosted'?
>
> Yes.  https://www.bing.com/search?q=key+ghosting
>
> > Does this mean these apparently problematic combinations require N-key
> rollover?
>
> No, not necessary.  Much cheaper redesign of a circuit would suffice.
>
> > I am also using org-mode with several multiple-key chords.  I cannot
> remember any instance where these have been a problem.
>
> So, evidently, either your keyboards are not affected or youʼve just never
> bumped into affected chords.  Do an exhaustive check, if you are concerned:
>
>         (while t
>           (let ((key (read-key)))
>             (message "%s: ok\n" (format-kbd-macro (vector key)))
>             (when (eql ?\C-g key) (keyboard-quit))))
>


-- 
The foundation of morality is to have done, once and for all, with lying.
                     ---Thomas Huxley,


  reply	other threads:[~2020-08-03 21:48 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-02 10:59 issue with keyboard input for multiple keys Ctrl-b / nkey rollover? Alan Davis
2020-08-02 11:45 ` 2QdxY4RzWzUUiLuE
2020-08-02 16:55   ` Alan Davis
2020-08-02 13:50 ` Yuri Khan
2020-08-02 15:02   ` Perry Smith
2020-08-02 16:49     ` Alan Davis
2020-08-02 17:04   ` N-key rollover keyboards (was: issue with keyboard input for multiple keys Ctrl-b / nkey rollover?) Dmitry Alexandrov
2020-08-02 17:47     ` Alan Davis
2020-08-03 18:17       ` N-key rollover keyboards Dmitry Alexandrov
2020-08-03 21:48         ` Alan Davis [this message]
2020-08-03 22:11           ` 2QdxY4RzWzUUiLuE
2020-08-04 10:07             ` Alan Davis
2020-08-04 11:29               ` Yuri Khan
2020-08-04 17:46                 ` Dmitry Alexandrov
2020-08-04 18:47                   ` Yuri Khan
2020-08-04 17:25             ` Dmitry Alexandrov
2020-08-05  3:12               ` 2QdxY4RzWzUUiLuE
2020-08-04 17:22           ` Dmitry Alexandrov

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=CAF+xKT4HYLcVbutSduXrP1qOFBU7fjbPiDXqZoMYw5TFOt39-Q@mail.gmail.com \
    --to=alan3davis@gmail.com \
    --cc=dag@gnui.org \
    --cc=help-gnu-emacs@gnu.org \
    --cc=yuri.v.khan@gmail.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).