awful.menu: support for access keys
commitb38569913c51ebd75e6ef0810063cf700edb921b
authorMatthias Schröder <ms@softimpulse.de>
Thu, 26 Nov 2009 11:47:39 +0000 (26 12:47 +0100)
committerJulien Danjou <julien@danjou.info>
Mon, 1 Mar 2010 14:57:00 +0000 (1 15:57 +0100)
tree4ad58ee4177d211d9b2e5c2fdf30caa55eca53f3
parent4299c5b184e15f6f102b1d8071c771a865fae326
awful.menu: support for access keys

You can define a menuitem like before:

awful.menu({ items = { { "&awesome", myawesomemenu,
      beautiful.awesome_icon },
                       { "open &terminal", terminal },
   })

and the letters following the ampersand in itemname can be used as
access key. (at least former fvwm users might find this familiar)

When there are submenus open awesome ascends during the search from the
current menu to the top level menu.

The access key is shown underlined.

There is no warning for multiple used keys, only the first one found
gets the price.

Signed-off-by: Julien Danjou <julien@danjou.info>
lib/awful/menu.lua.in