summaryrefslogtreecommitdiffstats
path: root/formbox.c
diff options
context:
space:
mode:
authornwhitehorn <nwhitehorn@FreeBSD.org>2011-07-14 13:57:13 +0000
committernwhitehorn <nwhitehorn@FreeBSD.org>2011-07-14 13:57:13 +0000
commit94f19e002939203294adf4d18b410183682bd2de (patch)
treea7a2aa04609d71dbb272a5004b5901d78d39dafb /formbox.c
parent9904759c67ae2ed3f18aef4891fb52900bcfb03f (diff)
downloadFreeBSD-src-94f19e002939203294adf4d18b410183682bd2de.zip
FreeBSD-src-94f19e002939203294adf4d18b410183682bd2de.tar.gz
Import dialog 1.1-20110707. This adds support for several features (e.g.
--hline) found in the old FreeBSD dialog.
Diffstat (limited to 'formbox.c')
-rw-r--r--formbox.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/formbox.c b/formbox.c
index 18f2054..7ec798c 100644
--- a/formbox.c
+++ b/formbox.c
@@ -1,9 +1,9 @@
/*
- * $Id: formbox.c,v 1.71 2010/02/24 10:45:57 Samuel.Martin.Moro Exp $
+ * $Id: formbox.c,v 1.73 2011/06/29 09:48:08 tom Exp $
*
* formbox.c -- implements the form (i.e, some pairs label/editbox)
*
- * Copyright 2003-2009,2010 Thomas E. Dickey
+ * Copyright 2003-2010,2011 Thomas E. Dickey
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License, version 2.1
@@ -433,12 +433,14 @@ dlg_form(const char *title,
{
/* *INDENT-OFF* */
static DLG_KEYS_BINDING binding[] = {
+ HELPKEY_BINDINGS,
ENTERKEY_BINDINGS,
NAVIGATE_BINDINGS,
END_KEYS_BINDING
};
static DLG_KEYS_BINDING binding2[] = {
INPUTSTR_BINDINGS,
+ HELPKEY_BINDINGS,
ENTERKEY_BINDINGS,
NAVIGATE_BINDINGS,
END_KEYS_BINDING
@@ -633,7 +635,7 @@ dlg_form(const char *title,
case DLGK_ENTER:
dlg_del_window(dialog);
- result = (state >= 0) ? dlg_ok_buttoncode(state) : DLG_EXIT_OK;
+ result = (state >= 0) ? dlg_enter_buttoncode(state) : DLG_EXIT_OK;
continue;
case DLGK_GRID_LEFT:
OpenPOWER on IntegriCloud