Filter Command

Sarah Reichelt sarah.reichelt at gmail.com
Mon Sep 26 17:27:58 EDT 2005


>      I've created a search field that uses the Filter command in a
> keyUp handler in a search phrase field to do searches as I type.
> What I am not able to do is refresh the search as I delete characters
> by trapping the deleteKey message.  The following handler does nothing:
>
> on deleteKey
>    send keyUp to me
>    pass deleteKey
> end deleteKey
>
> What am I doing wrong?  Any advice would be most appreciated.
>

I don't think you can do it just by passing a keyUp message with no
parameter. I would do it by writing a separate handler to do the
actual filtering. Then call this filter handler from the keyUp,
deleteKey, backSpaceKey handlers.

Or to catch every keystroke, use rawKeyUp instead.

HTH,
Sarah



More information about the use-livecode mailing list