From: msw Date: Mon, 15 Mar 1999 16:09:28 +0000 (+0000) Subject: changes X-Git-Tag: r0-40~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f3de128456a61d909a449dcf5de1cc83533f6b23;p=thirdparty%2Fnewt.git changes --- diff --git a/entry.c b/entry.c index a44c63f..acb6830 100644 --- a/entry.c +++ b/entry.c @@ -306,7 +306,7 @@ static struct eventResult entryHandleKey(newtComponent co, int key) { default: if ((key >= 0x20 && key <= 0x7e) || (key >= 0xa0 && key <= 0xff)) { - if (!(en->flags & NEWT_FLAG_SCROLL) && en->bufUsed == co->width) { + if (!(en->flags & NEWT_FLAG_SCROLL) && en->bufUsed >= co->width) { SLtt_beep(); break; } diff --git a/listbox.c b/listbox.c index 68efbce..ccdf76e 100644 --- a/listbox.c +++ b/listbox.c @@ -629,8 +629,7 @@ static struct eventResult listboxEvent(newtComponent co, struct event ev) { er.result = ER_SWALLOWED; break; default: - if (isalpha(ev.u.key)) { - + if (ev.u.key < NEWT_KEY_EXTRA_BASE && isalpha(ev.u.key)) { for(i = 0, item = li->boxItems; item != NULL && i < li->currItem; i++, item = item->next); diff --git a/newt.spec b/newt.spec index 92de59a..3434712 100644 --- a/newt.spec +++ b/newt.spec @@ -2,7 +2,7 @@ Summary: A development library for text mode user interfaces. Name: newt %define version 0.40 Version: %{version} -Release: 6 +Release: 7 Copyright: LGPL Group: System Environment/Libraries Source: ftp://ftp.redhat.com/pub/redhat/code/newt/newt-%{version}.tar.gz @@ -55,6 +55,9 @@ rm -rf $RPM_BUILD_ROOT %postun -p /sbin/ldconfig %changelog +* Mon Mar 15 1999 Matt Wilson +- fix from Jakub Jelinek for listbox keypresses + * Fri Feb 27 1999 Matt Wilson - fixed support for navigating listboxes with alphabetical keypresses