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 <anurag08priyam@gmail.com> Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
4f2156299f
commit
8034e2a5d8
|
@ -194,9 +194,7 @@ end
|
||||||
|
|
||||||
|
|
||||||
local function grabber(mod, key, event)
|
local function grabber(mod, key, event)
|
||||||
if event == "release" then
|
if event ~= "press" then return end
|
||||||
return true
|
|
||||||
end
|
|
||||||
|
|
||||||
local sel = cur_menu.sel or 0
|
local sel = cur_menu.sel or 0
|
||||||
if util.table.hasitem(menu_keys.up, key) then
|
if util.table.hasitem(menu_keys.up, key) then
|
||||||
|
@ -216,8 +214,6 @@ local function grabber(mod, key, event)
|
||||||
else
|
else
|
||||||
check_access_key(cur_menu, key)
|
check_access_key(cur_menu, key)
|
||||||
end
|
end
|
||||||
|
|
||||||
return true
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue