keeping focus in a field

SparkOut SparkOutYNY at
Tue Feb 17 17:33:49 CST 2009

Ken Ray wrote:
>> But if I create a context menu using popup button, the selected text in
>> field looses focus at the moment the popup is called. Is there any
>> simple trick (I already know complex ones :-)) to force the selection to
>> persist, so I could handle it from the context menu ?
> Yes, set the "traversalOn" of the button that is the context menu to
> "false".
> Ken Ray
> Sons of Thunder Software, Inc.
> Email: kray at
> Web Site:
> _______________________________________________
> use-revolution mailing list
> use-revolution at
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> This won't likely apply in the given situation (you want to preserve the
> selection of text in a field, not really the point where you'd have any
> handlers firing) but one caveat of disabling the traversalOn of the button
> is that any handlers in the field (such as closeField) will not be
> triggered until after the focus leaves the button and goes to some other
> focusable object. It might be something to remember in other situations.

View this message in context:
Sent from the Revolution - User mailing list archive at

More information about the use-livecode mailing list