awful.prompt: Properly stop keygrabber (FS#965)
This was broken since 014d191f66
(which made this kind of stuff mandatory,
because 'return false' is ignored now). Whoops.
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
5f8f245ab6
commit
4f2156299f
|
@ -211,6 +211,7 @@ function run(args, textbox, exe_callback, completion_callback, history_path, his
|
||||||
-- Get out cases
|
-- Get out cases
|
||||||
if (mod.Control and (key == "c" or key == "g"))
|
if (mod.Control and (key == "c" or key == "g"))
|
||||||
or (not mod.Control and key == "Escape") then
|
or (not mod.Control and key == "Escape") then
|
||||||
|
capi.keygrabber.stop()
|
||||||
textbox:set_markup("")
|
textbox:set_markup("")
|
||||||
if done_callback then done_callback() end
|
if done_callback then done_callback() end
|
||||||
return false
|
return false
|
||||||
|
|
Loading…
Reference in New Issue