mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 18:07:59 +00:00
Send EVENT_VALCHANGE when a System 7 editbox gets typed in.
[originally from svn r3060]
This commit is contained in:
parent
277ca3a397
commit
d077cbb088
@ -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
|
* Copyright (c) 2003 Ben Harris
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
@ -954,10 +954,12 @@ void macctrl_key(WindowPtr window, EventRecord *event)
|
|||||||
TEHandle te;
|
TEHandle te;
|
||||||
|
|
||||||
if (mcs->focus != NULL) {
|
if (mcs->focus != NULL) {
|
||||||
switch (mcs->focus->generic.type) {
|
mc = mcs->focus;
|
||||||
|
switch (mc->generic.type) {
|
||||||
case MACCTRL_EDITBOX:
|
case MACCTRL_EDITBOX:
|
||||||
te = (TEHandle)(*mcs->focus->editbox.tbctrl)->contrlData;
|
te = (TEHandle)(*mc->editbox.tbctrl)->contrlData;
|
||||||
TEKey(event->message & charCodeMask, te);
|
TEKey(event->message & charCodeMask, te);
|
||||||
|
ctrlevent(mcs, mc, EVENT_VALCHANGE);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user