commit a1d41a4e breaks `AltGr` and `Shift+Alt`
Today I noticed that I cannot type Shift+Alt+:
any more in nano -- I get Shift+Alt+;
instead. I bisected it to a1d41a4e: "map three real modifiers to keys instead of to symbols". Ouch...
When comparing the output of xkbcomp :0 themap
before and after that commit, the only difference is that after the commit <RALT>
has acquired the Mod1
modifier. Which is understandable but makes the AltGr key stop doing what it should: choose the third level. --- That was the advantage of mapping modifiers to symbols: when in the end no key gets the relevant symbol, then the corresponding modifier mapping will not occur.
But why Shift+Alt+key
no longer chooses the level2 symbol of the key but the level1 symbol instead, I don't understand. When just making the below change, then Shift+Alt+key
gives the second-level symbol again.
- modifier_map Mod1 { <LALT>, <RALT> };
+ modifier_map Mod1 { <LALT>, Alt_R };
Why does this change affect how Shift plus the left Alt key behaves? I don't get it.