diff options
author | nwhitehorn <nwhitehorn@FreeBSD.org> | 2011-07-14 14:01:36 +0000 |
---|---|---|
committer | nwhitehorn <nwhitehorn@FreeBSD.org> | 2011-07-14 14:01:36 +0000 |
commit | 7c690c1aa838ce557a7140db128970d6149b34d6 (patch) | |
tree | 5205a5ffae5e2d9b6ee74c0df561f0dd164f7814 /contrib/dialog/textbox.c | |
parent | e54e39a5004441432886ee2a43973c797fafdfd8 (diff) | |
parent | 94f19e002939203294adf4d18b410183682bd2de (diff) | |
download | FreeBSD-src-7c690c1aa838ce557a7140db128970d6149b34d6.zip FreeBSD-src-7c690c1aa838ce557a7140db128970d6149b34d6.tar.gz |
Update dialog to 1.1-20110707.
Diffstat (limited to 'contrib/dialog/textbox.c')
-rw-r--r-- | contrib/dialog/textbox.c | 9 |
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) { |