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

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
129 case 'e':129 case 'e':
130 case 'X':130 case 'X':
131 case 'x':131 case 'x':
132 case 'q':
132 delwin(box);133 delwin(box);
133 delwin(dialog);134 delwin(dialog);
134 return 0;135 return 0;
@@ -190,6 +191,7 @@ do_resize: · 55 unmodified lines
190 break;191 break;
191 case 'B': /* Previous page */192 case 'B': /* Previous page */
192 case 'b':193 case 'b':
194 case 'u':
193 case KEY_PPAGE:195 case KEY_PPAGE:
194 if (begin_reached)196 if (begin_reached)
195 break;197 break;
@@ -214,6 +216,7 @@ do_resize: · 18 unmodified lines
214 break;216 break;
215 case KEY_NPAGE: /* Next page */217 case KEY_NPAGE: /* Next page */
216 case ' ':218 case ' ':
219 case 'd':
217 if (end_reached)220 if (end_reached)
218 break;221 break;
219 222
scripts/kconfig/mconf.c+3−3
@@ -105,10 +105,10 @@ static const char mconf_readme[] = N_( · 104 unmodified lines
105"Text Box (Help Window)\n"105"Text Box (Help Window)\n"
106"--------\n"106"--------\n"
107"o Use the cursor keys to scroll up/down/left/right. The VI editor\n"107"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"108" keys h,j,k,l function here as do <u>, <d>, <SPACE BAR> and <B> for \n"
109" who are familiar with less and lynx.\n"109" those who are familiar with less and lynx.\n"
110"\n"110"\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"
112"\n"112"\n"
113"\n"113"\n"
114"Alternate Configuration Files\n"114"Alternate Configuration Files\n"