From f5bf5aa43dfb3f00e344d593e7c3ad080f13d836 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Gross?= Date: Sat, 29 Nov 2008 01:07:06 +0000 Subject: [PATCH] awful.prompt: Add support for KP_Return MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * The numeric paddle Enter key wasn't processed Signed-off-by: Sébastien Gross Signed-off-by: Julien Danjou --- lib/awful/prompt.lua.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/awful/prompt.lua.in b/lib/awful/prompt.lua.in index 3b456d7e5..d90d09ae3 100644 --- a/lib/awful/prompt.lua.in +++ b/lib/awful/prompt.lua.in @@ -161,7 +161,8 @@ function run(args, textbox, exe_callback, completion_callback, history_path, his if done_callback then done_callback() end return false 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 = "" history_add(history_path, command) capi.keygrabber.stop()