I've this in my ~/.Xmodmap
:
keycode 47 = Mode_switch NoSymbol Mode_switch
keycode 25 = w W backslash bar
Shift+Mode_switch+W produces bar, which is what's intended. However Mode_switch+Shift+W produces W. Why is this?
As I was writing this question, I've made this replacement:
keycode 47 = Mode_switch Mode_switch Mode_switch
and now the problem disappeared. However I've seen Mode_switch NoSymbol Mode_switch
used
many times. Can someone explain why the change fixes the problem? Any pitfalls to this method?