Subject: bug#54889: 29.0.50; shift keys can't function when using setxkbmap with custom_symbol in gnome

From: Po Lu <[email-masked]>
Date: Wed, 13 Apr 2022 11:24:50 +0800

[Please use "Reply All" to reply, otherwise your messages will not be
recorded in the bug tracker.]

[email-masked] writes:

> Hi,
> thans reply.
>
> 1. i tried to use this cmd as attached:
>        xmodmap -pk  >  modifier_map_Shift__on
>        xmodmap -pk  >  modifier_map_Shift__off
>
>      do you mean this cmd?

I asked for the the output of `xmodmap' (without any arguments,
including "-pk") when your system is configured so that typing Shift+N,
for example, results in "H-_".

> 2. when i am testing,
>      i noticed that SHIFT+anykey can output capital letter,
>      even though  to set  'modifier_map_Shift' off in the file: mysymbol,
>      so in fact, if there are no
>        // modifier_map Shift { <LFSH> };
>       // modifier_map Shift { <RTSH> };
>      i can input any latter with Shift keys in emacs 29 if i do not set 'modifier_map Shift' on.
>
>      because originally i install archlinux with gnome (default xwayland)
>      i referenced arch wiki to use this cmd to output the whole layout:
>         xkbcomp $DISPLAY ~/.config/xkb/xkb_output.xkb
>      there are modifier_map in the output  file,
>      so i thought it shall has to  set  ' modifier_map Shift' there.
>      after test,  it seems no modifier_map Shift still works.
>
>      but i tried three application that accepted  level three key:
>      firefox, urxvt, emacs,
>      only emacs can't use shift key to input  capital letter with the set ' modifier_map Shift' on.

Did you try building `--with-xinput2'?  And do you have any funny
options such as `x-gtk-use-native-input' enabled?

What happens if you run Emacs like this?

  emacs -q -xrm 'Emacs.useXIM: false'

Thanks in advance.