diff mbox

menuconfig: make keys u/d move to the previous/next dialog page

Message ID 1343139783-22776-1-git-send-email-bpoirier@suse.de (mailing list archive)
State New, archived
Headers show

Commit Message

Benjamin Poirier July 24, 2012, 2:23 p.m. UTC
... just like less(1) for example.

Signed-off-by: Benjamin Poirier <bpoirier@suse.de>
---
 scripts/kconfig/lxdialog/textbox.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Comments

Randy Dunlap July 24, 2012, 5:38 p.m. UTC | #1
On 07/24/2012 07:23 AM, Benjamin Poirier wrote:

> ... just like less(1) for example.
> 


Looks like some help text in mconf.c and nconf.c should be updated
also...


> Signed-off-by: Benjamin Poirier <bpoirier@suse.de>
> ---
>  scripts/kconfig/lxdialog/textbox.c |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/scripts/kconfig/lxdialog/textbox.c b/scripts/kconfig/lxdialog/textbox.c
> index 154c2dd..805200f 100644
> --- a/scripts/kconfig/lxdialog/textbox.c
> +++ b/scripts/kconfig/lxdialog/textbox.c
> @@ -190,6 +190,7 @@ do_resize:
>  			break;
>  		case 'B':	/* Previous page */
>  		case 'b':
> +		case 'u':
>  		case KEY_PPAGE:
>  			if (begin_reached)
>  				break;
> @@ -214,6 +215,7 @@ do_resize:
>  			break;
>  		case KEY_NPAGE:	/* Next page */
>  		case ' ':
> +		case 'd':
>  			if (end_reached)
>  				break;
>
diff mbox

Patch

diff --git a/scripts/kconfig/lxdialog/textbox.c b/scripts/kconfig/lxdialog/textbox.c
index 154c2dd..805200f 100644
--- a/scripts/kconfig/lxdialog/textbox.c
+++ b/scripts/kconfig/lxdialog/textbox.c
@@ -190,6 +190,7 @@  do_resize:
 			break;
 		case 'B':	/* Previous page */
 		case 'b':
+		case 'u':
 		case KEY_PPAGE:
 			if (begin_reached)
 				break;
@@ -214,6 +215,7 @@  do_resize:
 			break;
 		case KEY_NPAGE:	/* Next page */
 		case ' ':
+		case 'd':
 			if (end_reached)
 				break;