Dispatch-Sending keyDown

Mark Wieder mwieder at ahsoftware.net
Fri Oct 23 14:59:02 EDT 2009


Craig-

Friday, October 23, 2009, 11:15:13 AM, you wrote:

> If I type into the field, no text appears. Just like my issue with "send",
> keyDown is not passed to the engine.

Of course it is. Place a keydown handler in the stack and you'll see.

But how do you expect text to get into the field? There's no way for
the stack to know you wanted to put var into the field. Either of
these in the field script will do it:

on keydown var
    dispatch "keydown" to this stack with var
    pass keydown
end keydown

on keydown var
    dispatch "keydown" to this stack with var
    put var after me
end keydown

or in the stack script:

on keydown var
    put var after field "blah"
end keydown

-- 
-Mark Wieder
 mwieder at ahsoftware.net




More information about the use-livecode mailing list