Dispatch-Sending keyDown
Richmond Mathewson
richmondmathewson at gmail.com
Fri Oct 23 14:43:07 EDT 2009
DunbarX at aol.com wrote:
> Richard.
>
> I have a field with this in its script:
>
> on keydown var
> dispatch "keydown" to this stack with var
> end keydown
>
> If I type into the field, no text appears. Just like my issue with "send",
> keyDown is not passed to the engine. How did you make yours work?
>
> Craig
> _______________________________________________
>
Well my name ISN'T 'Richard', but as I am wide awake I tried this:
on keyDown var
put fld "fTEXT" & var into fld "fTEXT"
end keyDown
Bl**dy silly really as the cursor doesn't travel unless you do this:
on keyDown var
put fld "fTEXT" & var into fld "fTEXT"
select after fld "fTEXT"
end keyDown
I would just type into the field.
Objously I am missing something. . . . do tell . . . :)
More information about the use-livecode
mailing list