mirror of
https://github.com/dvorka/hstr.git
synced 2025-01-04 14:12:01 +08:00
Exit and do nothing on ESC.
This commit is contained in:
parent
e969b56700
commit
fec2497031
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue