awful.prompt: Add support for KP_Return

* The numeric paddle Enter key wasn't processed

Signed-off-by: Sébastien Gross <seb-awesome@chezwam.org>
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Sébastien Gross 2008-11-29 01:07:06 +00:00 committed by Julien Danjou
parent c7529c486d
commit f5bf5aa43d
1 changed files with 2 additions and 1 deletions

View File

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