Re: adding "accelerators" to right-click menu

Alexey Korop <[email protected]>
Newsgroups gmane.comp.window-managers.openbox
Message-ID <[email protected]>
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
_______________________________________________
openbox mailing list
[email protected]
http://icculus.org/mailman/listinfo/openbox
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.