From 8034e2a5d8c0acaaf2849c3b718d80c3939151a5 Mon Sep 17 00:00:00 2001 From: Anurag Priyam Date: Thu, 1 Mar 2012 15:43:29 -0500 Subject: [PATCH] awful.menu: remove superfluous return true from keygrabber's callback Returning true from the callback to `keygrabber` is no longer necessary to continue grabbing the keyboard. Signed-off-by: Anurag Priyam Signed-off-by: Uli Schlachter --- lib/awful/menu.lua.in | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/awful/menu.lua.in b/lib/awful/menu.lua.in index 3f3fea0ec..8dd176360 100644 --- a/lib/awful/menu.lua.in +++ b/lib/awful/menu.lua.in @@ -194,9 +194,7 @@ end local function grabber(mod, key, event) - if event == "release" then - return true - end + if event ~= "press" then return end local sel = cur_menu.sel or 0 if util.table.hasitem(menu_keys.up, key) then @@ -216,8 +214,6 @@ local function grabber(mod, key, event) else check_access_key(cur_menu, key) end - - return true end