Using pasteKey in a Search Field Handler

Gregory Lypny gregory.lypny at videotron.ca
Fri Jan 30 12:55:01 EST 2009


Hello everyone,

I've got a search field that is built around a keyDown handler as in

on keyDown
-- Find this stuff
end keyDown

I would also like the search to take place whenever something is  
pasted into the field.  I came across the pasteKey message and tried

on pastKey
    paste
    send "keyDown" && "A" to me -- the "A" is arbitrary
    pass pastKey
end pastKey

  and other variations without success.  The text is pasted into the  
field but the search handler isn't invoked.  What am I doing wrong?   
Any tips would be much appreciated.

Regards,

	Gregory



More information about the use-livecode mailing list