Description: correct mapping of button-codes with --nook option Author: Lebedev Vadim Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/dialog/+bug/333909 Reviewed-By: Last-Update: <15-05-2012> --- dialog-1.1-20111020.orig/menubox.c +++ dialog-1.1-20111020/menubox.c @@ -686,7 +686,10 @@ dlg_menu(const char *title, FALSE, width); break; case DLGK_ENTER: - result = dlg_enter_buttoncode(button); + if (is_inputmenu) + result = dlg_ok_buttoncode(button); + else + result = dlg_enter_buttoncode(button); /* * If dlg_menu() is called from dialog_menu(), we want to