navigate fields with tab/backtab

This commit is contained in:
Devin J. Pohly 2018-04-01 18:18:01 -05:00
parent 5a01a6e38f
commit 60d4407481
1 changed files with 3 additions and 0 deletions

View File

@ -22,6 +22,7 @@
#include "desktop.h"
#include "ncui.h"
#define KEY_TAB_ASCII 8
#define KEY_ENTER_ASCII 10
#define KEY_BACKSPACE_ASCII 127
@ -139,11 +140,13 @@ int main(void)
break;
}
case KEY_TAB_ASCII:
case KEY_DOWN:
form_driver(form.form, REQ_NEXT_FIELD);
form_driver(form.form, REQ_END_LINE);
break;
case KEY_BTAB:
case KEY_UP:
form_driver(form.form, REQ_PREV_FIELD);
form_driver(form.form, REQ_END_LINE);