Abnormal behavior?
Scott Rossi
scott at tactilemedia.com
Tue Feb 8 00:34:44 EST 2005
Recently, MisterX wrote:
> I have a field script with a keydown event
> which responds to keys typed in a field and
> which checks for pretyping using a handler.
>
> I also have a frontscript (XOS) with a generic
> pretype handler of the same name.
>
> What is abnormal is that when the keydown event
> calls the pretyping handler, the frontscript is
> the one that takes priority and not the handler
> in the same script!
>
> This busts completely the local overide principle
> in scripts... And the hierarchy of events...
>
> Other than renaming the handler name or "sendind"
> the handler to itself (the field) how can I "count"
> on having the right handler being called in all times?
If I understand you correctly, I would think the behavior is correct. If a
frontscript wasn't triggered first, why would you bother having frontscripts
at all?
Regards,
Scott Rossi
Creative Director
Tactile Media, Development & Design
-----
E: scott at tactilemedia.com
W: http://www.tactilemedia.com
More information about the use-livecode
mailing list