awful.prompt: stop grabbing keyboard before calling callback

This allows execution of grabbing function.

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-11-13 14:07:27 +01:00
parent b9398ad51e
commit 80f5d43631
1 changed files with 1 additions and 0 deletions

View File

@ -161,6 +161,7 @@ function run(args, textbox, exe_callback, completion_callback, history_path, his
or (not mod.Control and key == "Return") then or (not mod.Control and key == "Return") then
textbox.text = "" textbox.text = ""
history_add(history_path, command) history_add(history_path, command)
capi.keygrabber.stop()
exe_callback(command) exe_callback(command)
if done_callback then done_callback() end if done_callback then done_callback() end
return false return false