I'm talking about the Menu (keycode = 135) (aka Right Click), I don't use it
So I disabled its contextmenu action with Xmodmap tool, now it doesn't open the menu and still working for keyboard shortcuts*
Also disabled repeating itself with
xset -r 135 (Because keys like Ctrl don't repeat themselves while they are pressed)
* But the problem is that I can't combine it with other keys, like how Ctrl, Shift and Alt does.
For example I can create a shortcut like Shift+Alt+S, but I can't do something like that with Menu+somekey, it doesn't bind with other keys. I'm able to create "chords" of keys but it's not what I'm searching for.
Looks like I can't do it with Xmodmap :/
If you run
xev -event keyboard you can see that what changes with keys like Ctrl, Shift and Alt is the
state value, it goes from
state 0x0 when pressed, to
state 0x4 (In the case of Ctrl L) when released. That doesn't happen with Menu key and other non-bindable keys, all of them stays in
state 0x0, maybe this is the problem?
How I can solve this?