History

scripts: kconfig: nconf: make nconfig accept jk keybindings

Make nconfig accept jk keybindings for movement in addition to arrow keys.

Isak Ellmer committed 4 years ago

Commit 2bbb4861 parent a89227d1 file · +6 −2Browse files

Unified · Split

scripts/kconfig/nconf.c+6−2
@@ -52,8 +52,8 @@ static const char nconf_global_help[] = · 51 unmodified lines
5252 "\n"
5353 "Menu navigation keys\n"
5454 "----------------------------------------------------------------------\n"
55−"Linewise up <Up>\n"
56−"Linewise down <Down>\n"
55+"Linewise up <Up> <k>\n"
56+"Linewise down <Down> <j>\n"
5757 "Pagewise up <Page Up>\n"
5858 "Pagewise down <Page Down>\n"
5959 "First entry <Home>\n"
@@ -1105,9 +1105,11 @@ static void conf(struct menu *menu) · 1045 unmodified lines
11051105 break;
11061106 switch (res) {
11071107 case KEY_DOWN:
1108+ case 'j':
11081109 menu_driver(curses_menu, REQ_DOWN_ITEM);
11091110 break;
11101111 case KEY_UP:
1112+ case 'k':
11111113 menu_driver(curses_menu, REQ_UP_ITEM);
11121114 break;
11131115 case KEY_NPAGE:
@@ -1287,9 +1289,11 @@ static void conf_choice(struct menu *menu) · 173 unmodified lines
12871289 break;
12881290 switch (res) {
12891291 case KEY_DOWN:
1292+ case 'j':
12901293 menu_driver(curses_menu, REQ_DOWN_ITEM);
12911294 break;
12921295 case KEY_UP:
1296+ case 'k':
12931297 menu_driver(curses_menu, REQ_UP_ITEM);
12941298 break;
12951299 case KEY_NPAGE: