summaryrefslogtreecommitdiffstats
path: root/contrib/dialog/textbox.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/dialog/textbox.c')
-rw-r--r--contrib/dialog/textbox.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/contrib/dialog/textbox.c b/contrib/dialog/textbox.c
index f9a19eb..72a9b11 100644
--- a/contrib/dialog/textbox.c
+++ b/contrib/dialog/textbox.c
@@ -1,5 +1,5 @@
/*
- * $Id: textbox.c,v 1.99 2011/01/16 22:20:34 tom Exp $
+ * $Id: textbox.c,v 1.101 2011/06/29 09:53:03 tom Exp $
*
* textbox.c -- implements the text box
*
@@ -452,6 +452,7 @@ get_search_term(WINDOW *dialog, char *input, int height, int width)
/* *INDENT-OFF* */
static DLG_KEYS_BINDING binding[] = {
INPUTSTR_BINDINGS,
+ HELPKEY_BINDINGS,
ENTERKEY_BINDINGS,
END_KEYS_BINDING
};
@@ -628,6 +629,7 @@ dialog_textbox(const char *title, const char *file, int height, int width)
{
/* *INDENT-OFF* */
static DLG_KEYS_BINDING binding[] = {
+ HELPKEY_BINDINGS,
ENTERKEY_BINDINGS,
DLG_KEYS_DATA( DLGK_GRID_DOWN, 'J' ),
DLG_KEYS_DATA( DLGK_GRID_DOWN, 'j' ),
@@ -819,7 +821,10 @@ dialog_textbox(const char *title, const char *file, int height, int width)
FALSE, width);
break;
case DLGK_ENTER:
- result = dlg_exit_buttoncode(button);
+ if (dialog_vars.nook)
+ result = DLG_EXIT_OK;
+ else
+ result = dlg_exit_buttoncode(button);
break;
case DLGK_PAGE_FIRST:
if (!obj.begin_reached) {
OpenPOWER on IntegriCloud