From d077cbb0884225b6ed0128e4a370140f155e690a Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Sat, 5 Apr 2003 15:08:17 +0000 Subject: [PATCH] Send EVENT_VALCHANGE when a System 7 editbox gets typed in. [originally from svn r3060] --- mac/macctrls.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/mac/macctrls.c b/mac/macctrls.c index 857a6340..0ee332c7 100644 --- a/mac/macctrls.c +++ b/mac/macctrls.c @@ -1,4 +1,4 @@ -/* $Id: macctrls.c,v 1.25 2003/04/05 15:01:16 ben Exp $ */ +/* $Id: macctrls.c,v 1.26 2003/04/05 15:08:17 ben Exp $ */ /* * Copyright (c) 2003 Ben Harris * All rights reserved. @@ -954,10 +954,12 @@ void macctrl_key(WindowPtr window, EventRecord *event) TEHandle te; if (mcs->focus != NULL) { - switch (mcs->focus->generic.type) { + mc = mcs->focus; + switch (mc->generic.type) { case MACCTRL_EDITBOX: - te = (TEHandle)(*mcs->focus->editbox.tbctrl)->contrlData; + te = (TEHandle)(*mc->editbox.tbctrl)->contrlData; TEKey(event->message & charCodeMask, te); + ctrlevent(mcs, mc, EVENT_VALCHANGE); break; } }