aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/kconfig
diff options
context:
space:
mode:
authorBenjamin Poirier <bpoirier@suse.de>2012-07-24 16:12:02 -0400
committerMichal Marek <mmarek@suse.cz>2012-07-26 06:20:43 -0400
commit9d4792c9b4e9cab75e657cec0c140875472d16f0 (patch)
tree63dec33373a5ac72216930c77869804e3260ae52 /scripts/kconfig
parent1925a276afa78c305dacb7f2da11825bffecad44 (diff)
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>
Diffstat (limited to 'scripts/kconfig')
-rw-r--r--scripts/kconfig/lxdialog/textbox.c3
-rw-r--r--scripts/kconfig/mconf.c6
2 files changed, 6 insertions, 3 deletions
diff --git a/scripts/kconfig/lxdialog/textbox.c b/scripts/kconfig/lxdialog/textbox.c
index 154c2dd245b7..4e5de60a0c0d 100644
--- a/scripts/kconfig/lxdialog/textbox.c
+++ b/scripts/kconfig/lxdialog/textbox.c
@@ -129,6 +129,7 @@ do_resize:
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:
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:
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
diff --git a/scripts/kconfig/mconf.c b/scripts/kconfig/mconf.c
index f606738d421d..f584a281bb4c 100644
--- a/scripts/kconfig/mconf.c
+++ b/scripts/kconfig/mconf.c
@@ -105,10 +105,10 @@ static const char mconf_readme[] = N_(
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"