Hi.

Not sure, then, what you want. The docs do seem to be wrong in that when focus 
leaves the field, a closefield message is sent after a paste. And the 
"textChanged" message is sent immediately when text is pasted.


What specific behavior are you trying to achieve?


Craig Newman



-----Original Message-----
From: Dr. Hawkins <[email protected]>
To: How to use LiveCode <[email protected]>
Sent: Sun, Jul 21, 2013 3:12 pm
Subject: Re: paste and closeField


On Sat, Jul 20, 2013 at 8:47 PM,  <[email protected]> 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,
[email protected]
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
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

 
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to