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:
Uli Schlachter 2012-03-04 10:41:25 +01:00
parent 5f8f245ab6
commit 4f2156299f
1 changed files with 1 additions and 0 deletions

View File

@ -211,6 +211,7 @@ function run(args, textbox, exe_callback, completion_callback, history_path, his
-- Get out cases
if (mod.Control and (key == "c" or key == "g"))
or (not mod.Control and key == "Escape") then
capi.keygrabber.stop()
textbox:set_markup("")
if done_callback then done_callback() end
return false