Description: correct mapping of button-codes with --nook option
Author: Lebedev Vadim <abraham1901@gmail.com>
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/dialog/+bug/333909
Bug-Debian: http://bugs.debian.org/673041
Reviewed-By: Serge Hallyn <serge.hallyn@ubuntu.com>
Reviewed-By: Thomas Dickey <dickey@his.com>
Last-Update: 2012-06-08

--- a/menubox.c
+++ b/menubox.c
@@ -687,7 +687,10 @@
 				 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
