From: Juri Linkov <juri@linkov.net>
To: Po Lu <luangruo@yahoo.com>
Cc: 53003@debbugs.gnu.org
Subject: bug#53003: 29.0.50; Wrong key modifiers
Date: Tue, 04 Jan 2022 19:31:51 +0200 [thread overview]
Message-ID: <867dbfpj34.fsf@mail.linkov.net> (raw)
In-Reply-To: <87mtkbaa1w.fsf@yahoo.com> (Po Lu's message of "Tue, 04 Jan 2022 21:46:03 +0800")
> Please show the output of `xmodmap'.
shift Shift_L (0x32)
lock
control Control_L (0x25), Control_L (0x42), Control_R (0x69)
mod1 Alt_L (0x40), Meta_L (0xcd)
mod2 Num_Lock (0x4d)
mod3
mod4 Hyper_L (0x85), Hyper_R (0x86), Super_L (0xce), Hyper_L (0xcf)
mod5 ISO_Level3_Shift (0x5c), Mode_switch (0xcb)
> Do you see a line where Hyper is on the same line as Super, something
> like this?
>
> mod4 Hyper_L (0x42), Super_L (0x85), Super_R (0x86), Super_L (0xce), Hyper_L (0xcf)
>
> (The keysym reported by xev does not really matter: that is not how X11
> virtual modifiers work.)
Indeed, Hyper and Super are on the same line.
> Many X servers are misconfigured that way, causing Super to be
> recognized as Hyper for the majority of users. The recent switch to
> using XKB for detecting virtual modifiers solved that problem, but
> potentially caused this one as well.
>
> The correct solution is to remove the Hyper keys from the real modifier
> Mod4, and move them to (if not already occupied by another virtual
> modifier) Mod5.
>
> But I cannot tell you how to do that in concrete until I see the
> output of `xmodmap' on your system.
The above xmodmap was created by enabling the option in Keyboard Preferences:
"Alt/Win key behavior" -> "Hyper is mapped to Win".
I tried to disable this option and got such xmodmap:
mod4 Super_L (0x85), Super_R (0x86), Super_L (0xce), Hyper_L (0xcf)
and still Super is used instead of Hyper.
But I already replaced all mentions of 'hyper' with 'super' in my init file,
so if you think there is no bug, then you could close this report.
next prev parent reply other threads:[~2022-01-04 17:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-04 7:48 bug#53003: 29.0.50; Wrong key modifiers Juri Linkov
2022-01-04 13:46 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-01-04 17:31 ` Juri Linkov [this message]
2022-01-05 1:03 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
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=867dbfpj34.fsf@mail.linkov.net \
--to=juri@linkov.net \
--cc=53003@debbugs.gnu.org \
--cc=luangruo@yahoo.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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).