Skip to content

Commit 2bbb486

Browse files
spinojaramasahir0y
authored andcommitted
scripts: kconfig: nconf: make nconfig accept jk keybindings
Make nconfig accept jk keybindings for movement in addition to arrow keys. Signed-off-by: Isak Ellmer <[email protected]> Signed-off-by: Masahiro Yamada <[email protected]>
1 parent a89227d commit 2bbb486

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

scripts/kconfig/nconf.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ static const char nconf_global_help[] =
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)
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)
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:

0 commit comments

Comments
 (0)