awful.menu: add item_enter in access key handling

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Yves Frederix 2010-04-11 12:37:14 +02:00 committed by Julien Danjou
parent 0179eb3d9b
commit 3e3c26c019
1 changed files with 3 additions and 2 deletions

View File

@ -157,8 +157,9 @@ end
local function check_access_key(menu, key)
for i, item in pairs(menu.items) do
if item.akey == key then
exec(menu, i)
return
item_enter(menu, i)
exec(menu, i)
return
end
end
if menu.parent then