ui/ncurses: Interpret left/right keys as up/down
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>
Mon, 9 May 2016 01:41:30 +0000 (11:41 +1000)
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>
Tue, 24 May 2016 01:08:15 +0000 (11:08 +1000)
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
ui/ncurses/nc-widgets.c

index 98d30cc8686cf76e67694de24e83ebf889fd4267..c5c4cec6faad311473802b3700ef7207d2e7b58a 100644 (file)
@@ -1129,12 +1129,14 @@ bool widgetset_process_key(struct nc_widgetset *set, int key)
                tab = true;
                /* fall through */
        case KEY_UP:
                tab = true;
                /* fall through */
        case KEY_UP:
+       case KEY_LEFT:
                req = REQ_SPREV_FIELD;
                break;
        case '\t':
                tab = true;
                /* fall through */
        case KEY_DOWN:
                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:
                req = REQ_SNEXT_FIELD;
                break;
        case KEY_PPAGE: