From 3fb00bfbe873005bdd0d6c3cf2c02515d57f2ef1 Mon Sep 17 00:00:00 2001 From: Martin Dvorak Date: Wed, 18 Dec 2013 09:35:24 +0100 Subject: [PATCH] Fixing left/right keys. --- src/hstr.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/hstr.c b/src/hstr.c index 1cffd5f..3e66a11 100644 --- a/src/hstr.c +++ b/src/hstr.c @@ -21,7 +21,7 @@ #include "include/hstr_history.h" #define LABEL_HISTORY " HISTORY " -#define LABEL_HELP "Type to filter, UP/DOWN arrows to move, Ctrl-r to rmv row, ENTER to select, Ctrl-x to exit" +#define LABEL_HELP "Type to filter, arrows to move, Ctrl-r to remove, ENTER to select, Ctrl-x to exit" #define SELECTION_CURSOR_IN_PROMPT -1 #define Y_OFFSET_PROMPT 0 @@ -35,7 +35,6 @@ #define KEY_CTRL_R 18 #define KEY_CTRL_X 24 -#define DEBUG_KEYS #ifdef DEBUG_KEYS #define LOGKEYS(Y,KEY) mvprintw(Y, 0, "Key number: '%3d' / Char: '%c'", KEY, KEY) #else @@ -268,8 +267,9 @@ char *selection_loop(HistoryItems *history) { move(y, basex+strlen(prefix)); } break; - case 91: - // TODO 91 killed > debug to determine how to distinguish \e and [ + case 91: // TODO 91 killed > debug to determine how to distinguish \e and [ + case 68: // left arrow + case 67: // rigtht arrow break; case KEY_BACKSPACE: case 127: