Skip to content

Commit 9d4792c

Browse files
gobenjimichal42
authored andcommitted
menuconfig: add u, d, q command keys in text boxes
They function just like they do in less(1). Signed-off-by: Benjamin Poirier <bpoirier@suse.de> Signed-off-by: Michal Marek <mmarek@suse.cz>
1 parent 1925a27 commit 9d4792c

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

scripts/kconfig/lxdialog/textbox.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ int dialog_textbox(const char *title, const char *tbuf,
129129
case 'e':
130130
case 'X':
131131
case 'x':
132+
case 'q':
132133
delwin(box);
133134
delwin(dialog);
134135
return 0;
@@ -190,6 +191,7 @@ int dialog_textbox(const char *title, const char *tbuf,
190191
break;
191192
case 'B': /* Previous page */
192193
case 'b':
194+
case 'u':
193195
case KEY_PPAGE:
194196
if (begin_reached)
195197
break;
@@ -214,6 +216,7 @@ int dialog_textbox(const char *title, const char *tbuf,
214216
break;
215217
case KEY_NPAGE: /* Next page */
216218
case ' ':
219+
case 'd':
217220
if (end_reached)
218221
break;
219222

scripts/kconfig/mconf.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,10 @@ static const char mconf_readme[] = N_(
105105
"Text Box (Help Window)\n"
106106
"--------\n"
107107
"o Use the cursor keys to scroll up/down/left/right. The VI editor\n"
108-
" keys h,j,k,l function here as do <SPACE BAR> and <B> for those\n"
109-
" who are familiar with less and lynx.\n"
108+
" keys h,j,k,l function here as do <u>, <d>, <SPACE BAR> and <B> for \n"
109+
" those who are familiar with less and lynx.\n"
110110
"\n"
111-
"o Press <E>, <X>, <Enter> or <Esc><Esc> to exit.\n"
111+
"o Press <E>, <X>, <q>, <Enter> or <Esc><Esc> to exit.\n"
112112
"\n"
113113
"\n"
114114
"Alternate Configuration Files\n"

0 commit comments

Comments
 (0)