History

menuconfig: add u, d, q command keys in text boxes

They function just like they do in less(1).

Benjamin Poirier committed 14 years ago

Commit 9d4792c1 parent 1925a272 files · +6 −3Browse files

Showing the changes to scripts (2 of 2 files). Show all

Unified · Split

2 files
  1. scripts/kconfig/lxdialog/textbox.c +3 −0
  2. scripts/kconfig/mconf.c +3 −3
scripts/kconfig/lxdialog/textbox.c+3−0
@@ -129,6 +129,7 @@ do_resize: · 128 unmodified lines
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 @@ do_resize: · 55 unmodified lines
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 @@ do_resize: · 18 unmodified lines
214216 break;
215217 case KEY_NPAGE: /* Next page */
216218 case ' ':
219+ case 'd':
217220 if (end_reached)
218221 break;
219222
scripts/kconfig/mconf.c+3−3
@@ -105,10 +105,10 @@ static const char mconf_readme[] = N_( · 104 unmodified lines
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"