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:
parent
c7529c486d
commit
f5bf5aa43d
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue