summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>2016-05-09 11:41:30 +1000
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>2016-05-24 11:08:15 +1000
commit27863350496534c1bdd6a2d48661f8973aed0945 (patch)
tree29a8165059b59c2d5f934c82bdbb41197e8f2f9b
parent6993af8a4b8bb3c6b1d12172b346c5aa41b7dc61 (diff)
downloadtalos-petitboot-27863350496534c1bdd6a2d48661f8973aed0945.tar.gz
talos-petitboot-27863350496534c1bdd6a2d48661f8973aed0945.zip
ui/ncurses: Interpret left/right keys as up/down
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
-rw-r--r--ui/ncurses/nc-widgets.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/ncurses/nc-widgets.c b/ui/ncurses/nc-widgets.c
index 98d30cc..c5c4cec 100644
--- a/ui/ncurses/nc-widgets.c
+++ b/ui/ncurses/nc-widgets.c
@@ -1129,12 +1129,14 @@ bool widgetset_process_key(struct nc_widgetset *set, int key)
tab = true;
/* fall through */
case KEY_UP:
+ case KEY_LEFT:
req = REQ_SPREV_FIELD;
break;
case '\t':
tab = true;
/* fall through */
case KEY_DOWN:
+ case KEY_RIGHT:
req = REQ_SNEXT_FIELD;
break;
case KEY_PPAGE:
OpenPOWER on IntegriCloud