mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/2] menu: fix double action when "\n\r" or "\r\n" is received
@ 2012-04-07  3:00 Jean-Christophe PLAGNIOL-VILLARD
  2012-04-07  3:00 ` [PATCH 2/2] menu: add color fancy support Jean-Christophe PLAGNIOL-VILLARD
  2012-04-10  8:00 ` [PATCH 1/2] menu: fix double action when "\n\r" or "\r\n" is received Sascha Hauer
  0 siblings, 2 replies; 3+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2012-04-07  3:00 UTC (permalink / raw)
  To: barebox

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
---
 common/menu.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/common/menu.c b/common/menu.c
index fd21e52..e85a320 100644
--- a/common/menu.c
+++ b/common/menu.c
@@ -296,7 +296,7 @@ int menu_show(struct menu *m)
 
 	do {
 		if (m->auto_select >= 0)
-			ch = KEY_ENTER;
+			ch = KEY_RETURN;
 		else
 			ch = getc();
 
@@ -339,7 +339,6 @@ int menu_show(struct menu *m)
 				m->selected->action(m, m->selected);
 			print_menu_entry(m, m->selected, 1);
 			break;
-		case KEY_ENTER:
 		case KEY_RETURN:
 			clear();
 			gotoXY(1,1);
-- 
1.7.9.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2012-04-10  8:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-07  3:00 [PATCH 1/2] menu: fix double action when "\n\r" or "\r\n" is received Jean-Christophe PLAGNIOL-VILLARD
2012-04-07  3:00 ` [PATCH 2/2] menu: add color fancy support Jean-Christophe PLAGNIOL-VILLARD
2012-04-10  8:00 ` [PATCH 1/2] menu: fix double action when "\n\r" or "\r\n" is received Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox