[PATCH 1/2] menu: fix double action when "\n\r" or "\r\n" is received
Sascha Hauer
s.hauer at pengutronix.de
Tue Apr 10 04:00:23 EDT 2012
On Sat, Apr 07, 2012 at 05:00:14AM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote:
> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
Applied, thanks
Sascha
> ---
> 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 at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
>
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox
mailing list