[openbox] adding "accelerators" to right-click menu

Alexey Korop akorop at gmail.com
Sat Jan 18 12:30:49 EST 2014


Augustine Souza wrote on 18.01.2014 12:13:
 AS> I have this in my rc.xml
 AS> <keybind key="W-space">
 AS> <action name="ShowMenu">
 AS> <menu>root-menu</menu>
 AS> </action>
 AS> </keybind>
 AS> so that I can access the "right-click" menu from the keyboard
 AS> instead of using the mouse.
 AS> Is there any way to set this menu up so that when it is
 AS> exposed, I would just press, for example, b for ObConf, u for
 AS> Reconfigure, x for Exit, etc. Such a facility would be useful
 AS> in a vertically lengthy menu.
 You may use as accelerator:
    1) the first letter in the item title;
    2) the letter following an underscore anywhere in the item title.

Example: m, x, b are the accelerators:

<item label="Menu editor">
  <action name="Execute">
    <execute>obmenu</execute>
  </action>
</item>
<item label="e_xit">
  <action name="exit">
  </action>
</item>
<item label="o_bConf">
  <action name="Execute">
    <execute>obconf</execute>
  </action>
</item>
-- 
Yours truly Alexey


More information about the openbox mailing list