paste and closeField

Dr. Hawkins dochawk at gmail.com
Sun Jul 21 15:11:38 EDT 2013


On Sat, Jul 20, 2013 at 8:47 PM,  <dunbarx at aol.com> wrote:
> I did not check the docs, but if I paste into a field and then click on
the card somewhere, say, a
>closefield message is sent to the field.

According to a comment in the Dictionary,
pmbrig at gmail.com
2010-12-12 at 11:35:09
Note that if you paste text into a field, the closeField message is not
sent after the focus leaves the field, ie, the field is not flagged as
having had its contents changed. The "paste" command appears to be
equivalent to "put the clipboarddata["text"] into the selection."

Hmm, and I just put traps for closeField and exitField and pasted then
tabbed.  It seems that the comment is wrong . . .

> In any case, you can always trap "textChange".

But that would be synchronous.

When someone pastes in, he's likely to add more himself before leaving the
field.




-- 
Dr. Richard E. Hawkins, Esq.
(702) 508-8462



More information about the use-livecode mailing list