All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] menuconfig: Allow j/k to move down/up the menu
@ 2013-07-05 11:32 Ramkumar Ramachandra
  2013-07-06 23:00 ` Rob Landley
  0 siblings, 1 reply; 9+ messages in thread
From: Ramkumar Ramachandra @ 2013-07-05 11:32 UTC (permalink / raw)
  To: LKML; +Cc: Michal Marek

Like in Vim.

Cc: Michal Marek <mmarek@suse.cz>
Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
---
 Unsure why nobody has done this yet.

 scripts/kconfig/lxdialog/menubox.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/scripts/kconfig/lxdialog/menubox.c b/scripts/kconfig/lxdialog/menubox.c
index 38cd69c..17fd936 100644
--- a/scripts/kconfig/lxdialog/menubox.c
+++ b/scripts/kconfig/lxdialog/menubox.c
@@ -307,11 +307,12 @@ do_resize:
 		    (i < max_choice ||
 		     key == KEY_UP || key == KEY_DOWN ||
 		     key == '-' || key == '+' ||
+		     key == 'j' || key == 'k' ||
 		     key == KEY_PPAGE || key == KEY_NPAGE)) {
 			/* Remove highligt of current item */
 			print_item(scroll + choice, choice, FALSE);
 
-			if (key == KEY_UP || key == '-') {
+			if (key == KEY_UP || key == '-' || key == 'k') {
 				if (choice < 2 && scroll) {
 					/* Scroll menu down */
 					do_scroll(menu, &scroll, -1);
@@ -320,7 +321,7 @@ do_resize:
 				} else
 					choice = MAX(choice - 1, 0);
 
-			} else if (key == KEY_DOWN || key == '+') {
+			} else if (key == KEY_DOWN || key == '+' || key == 'j') {
 				print_item(scroll+choice, choice, FALSE);
 
 				if ((choice > max_choice - 3) &&
-- 
1.8.3.2.722.g3244e19.dirty


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-07-10 14:56 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-05 11:32 [PATCH] menuconfig: Allow j/k to move down/up the menu Ramkumar Ramachandra
2013-07-06 23:00 ` Rob Landley
2013-07-07 18:30   ` Ramkumar Ramachandra
2013-07-08 23:08   ` Sören Brinkmann
2013-07-09 16:27     ` Rob Landley
2013-07-09 16:55     ` Heimo Stranner
2013-07-09 17:07       ` Steven Noonan
2013-07-09 17:15         ` Heimo Stranner
2013-07-10 14:56     ` Michal Marek

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.