From: ewt Date: Sat, 13 Jul 1996 20:09:13 +0000 (+0000) Subject: added ER_NEXTCOMP X-Git-Tag: v0-9~81 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e90f9163a2a58185691eba0bfe8e298e28c50027;p=thirdparty%2Fnewt.git added ER_NEXTCOMP --- diff --git a/form.c b/form.c index 4f8577c..2d37350 100644 --- a/form.c +++ b/form.c @@ -246,6 +246,16 @@ static struct eventResult formEvent(newtComponent co, struct event ev) { case EV_NORMAL: er = subco->ops->event(subco, ev); + switch (er.result) { + case ER_NEXTCOMP: + er.result = ER_SWALLOWED; + dir = 1; + wrap = 0; + break; + + default: + break; + } break; case EV_LATE: diff --git a/newt_pr.h b/newt_pr.h index 87b0d28..fd5fe00 100644 --- a/newt_pr.h +++ b/newt_pr.h @@ -34,7 +34,8 @@ struct newtComponent { void * data; } ; -enum eventResultTypes { ER_IGNORED, ER_SWALLOWED, ER_EXITFORM, ER_SETFOCUS }; +enum eventResultTypes { ER_IGNORED, ER_SWALLOWED, ER_EXITFORM, ER_SETFOCUS, + ER_NEXTCOMP }; struct eventResult { enum eventResultTypes result; union {