From fec24970311deff098819b481601857fdc0ab343 Mon Sep 17 00:00:00 2001 From: Martin Dvorak Date: Sat, 18 Jan 2014 21:50:04 +0100 Subject: [PATCH] Exit and do nothing on ESC. --- src/hstr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hstr.c b/src/hstr.c index 1e9a1e9..1e036fe 100644 --- a/src/hstr.c +++ b/src/hstr.c @@ -47,9 +47,8 @@ #define K_TAB 9 #define K_ENTER 10 -#define K_ALT 27 +#define K_ESC 27 -#define DEBUG_KEYS #ifdef DEBUG_KEYS #define LOGKEYS(Y,KEY) mvprintw(Y, 0, "Key: '%3d' / Char: '%c'", KEY, KEY); clrtoeol() #else @@ -461,6 +460,7 @@ char *selection_loop(HistoryItems *history) done = TRUE; break; case K_CTRL_G: + case K_ESC: result=""; history_clear_dirty(); done=TRUE;