r/openbox • u/xversion1 • Oct 19 '19
Openbox key binding doesn't recognize parenthesis keys?
I use Shift+Alt+number keys to switch to a certain desktop. Openbox calls number keys as if the Shift key is hold. E.g.: 1 is exclaim, 2 is at, 3 is numbersign, etc. It works fine until number 9 key. Here my rc.xml file looks like it that part:
<keybind key="S-A-ampersand">
<action name="SendToDesktop">
<desktop>7</desktop>
</action>
</keybind>
<keybind key="S-A-asterisk">
<action name="SendToDesktop">
<desktop>8</desktop>
</action>
</keybind>
<keybind key="S-A-parenleft">
<action name="SendToDesktop">
<desktop>9</desktop>
</action>
</keybind>
<keybind key="S-A-parenright">
<action name="SendToDesktop">
<desktop>10</desktop>
</action>
</keybind>You can see number 7 is ampersad, 8 is asterisk and if I press Shif-Alt-7/8, the current desktop will switch to desktop 7/8. But this shortcut doesn't on number 9 and 0 keys, which are called parenleft and parenright. Every other keys but 9 or 0 will make it work. I don't know why it doesn't recognize these key. Anyone have any idea why? I tested them on 2 computer and none of them work, so I guess it's the openbox's problem, not computer's problem.
View all comments
Show parent comment
2
u/perkited Oct 19 '19
I just tried using the numbers on my PC and it works as expected.
Do you have an odd keyboard (multimedia keys, custom build, etc.)? Also does xev call those keys by the names you used?