diff --git a/SOURCES/dialog-formkeys.patch b/SOURCES/dialog-formkeys.patch new file mode 100644 index 0000000..56c3548 --- /dev/null +++ b/SOURCES/dialog-formkeys.patch @@ -0,0 +1,15 @@ +diff -up dialog-1.3-20160424/formbox.c.orig dialog-1.3-20160424/formbox.c +--- dialog-1.3-20160424/formbox.c.orig 2013-09-02 19:02:05.000000000 +0200 ++++ dialog-1.3-20160424/formbox.c 2016-08-23 11:25:56.273045091 +0200 +@@ -447,9 +447,11 @@ prev_valid_buttonindex(int state, int ex + DLG_KEYS_DATA( DLGK_FIELD_PREV, KEY_BTAB ), \ + DLG_KEYS_DATA( DLGK_ITEM_NEXT, CHR_NEXT ), \ + DLG_KEYS_DATA( DLGK_ITEM_NEXT, KEY_DOWN ), \ ++ DLG_KEYS_DATA( DLGK_ITEM_NEXT, KEY_RIGHT ), \ + DLG_KEYS_DATA( DLGK_ITEM_NEXT, KEY_NEXT ), \ + DLG_KEYS_DATA( DLGK_ITEM_PREV, CHR_PREVIOUS ), \ + DLG_KEYS_DATA( DLGK_ITEM_PREV, KEY_PREVIOUS ), \ ++ DLG_KEYS_DATA( DLGK_ITEM_PREV, KEY_LEFT ), \ + DLG_KEYS_DATA( DLGK_ITEM_PREV, KEY_UP ), \ + DLG_KEYS_DATA( DLGK_PAGE_NEXT, KEY_NPAGE ), \ + DLG_KEYS_DATA( DLGK_PAGE_PREV, KEY_PPAGE ) diff --git a/SPECS/dialog.spec b/SPECS/dialog.spec index 7ebd30d..26260ec 100644 --- a/SPECS/dialog.spec +++ b/SPECS/dialog.spec @@ -2,7 +2,7 @@ Summary: A utility for creating TTY dialog boxes Name: dialog %global dialogsubversion 20130523 Version: 1.2 -Release: 4.%{dialogsubversion}%{?dist} +Release: 5.%{dialogsubversion}%{?dist} License: LGPLv2 Group: Applications/System URL: http://invisible-island.net/dialog/dialog.html @@ -11,6 +11,7 @@ BuildRequires: ncurses-devel gettext findutils libtool Patch1: dialog-incdir.patch Patch2: dialog-multilib.patch Patch3: dialog-libs.patch +Patch4: dialog-formkeys.patch %description Dialog is a utility that allows you to show dialog boxes (containing @@ -37,6 +38,7 @@ dialog library. %patch1 -p1 -b .incdir %patch2 -p1 -b .multilib %patch3 -p1 -b .libs +%patch4 -p1 -b .formkeys %build %configure \ @@ -78,6 +80,9 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/libdialog.{,l}a %{_mandir}/man3/dialog.* %changelog +* Fri Apr 06 2018 Miroslav Lichvar - 1.2-5.20130523 +- add left/right arrow keys to navigation bindings of form window (#1368333) + * Fri Jan 24 2014 Daniel Mach - 1.2-4.20130523 - Mass rebuild 2014-01-24