[PATCH] ui/ncurses: Interpret left/right keys as up/down

Samuel Mendoza-Jonas sam at mendozajonas.com
Mon May 9 11:56:51 AEST 2016


Signed-off-by: Samuel Mendoza-Jonas <sam at mendozajonas.com>
---
 ui/ncurses/nc-widgets.c | 2 ++
 1 file changed, 2 insertions(+)

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:
-- 
2.8.2



More information about the Petitboot mailing list