Re: Paste no closeField

2022-03-11 Thread Bob Sneidar via use-livecode
Yeah, I suppose. But I use the IDE a LOT. Remember my code is in a front script, which is good, because it works for all my apps, and ONLY when entering and leaving a field. Bob S > On Mar 11, 2022, at 08:48 , Klaus major-k via use-livecode > wrote: > > Hi Bob, > >> Am 11.03.2022 um 17:30

Re: Paste no closeField

2022-03-11 Thread Klaus major-k via use-livecode
Hi Bob, > Am 11.03.2022 um 17:30 schrieb Craig Newman via use-livecode > : > > OK. > > Does this help? It catches pasting, but not typing. > > on textChanged > if the commandKey is down then beep > end textChanged you could also catch "on pastekey", but that will only work in a standalone, th

Re: Paste no closeField

2022-03-11 Thread Craig Newman via use-livecode
OK. Does this help? It catches pasting, but not typing. on textChanged if the commandKey is down then beep end textChanged > On Mar 11, 2022, at 10:52 AM, Bob Sneidar via use-livecode > wrote: > > Because I don’t want to trigger it every time someone types a character, but > that would be

Re: Paste no closeField

2022-03-11 Thread Bob Sneidar via use-livecode
Because I don’t want to trigger it every time someone types a character, but that would be one way to do it. I clean up anything I drag or type into fields, stripping all but printable ascii because OCR PDF files contain a lot of crap that wreaks havoc with databases. Sent from my iPhone > On

Re: Paste no closeField

2022-03-11 Thread Craig Newman via use-livecode
Hi. Why not use the “textChanged” message? That one would always fire if pasting text. Craig > On Mar 10, 2022, at 5:57 PM, Bob Sneidar via use-livecode > wrote: > >> works with fields whose nam ___ use-livecode mailing list use-livecode@lists.ru

Re: Paste no closeField

2022-03-10 Thread Bob Sneidar via use-livecode
It only works with fields whose name begins with "fld" (damn you spell correct!) Bob S > On Mar 10, 2022, at 14:53 , Bob Sneidar via use-livecode > wrote: > > It only works with fields whose name begins with "old" ___ use-livecode mailing list us

Paste no closeField

2022-03-10 Thread Bob Sneidar via use-livecode
hi all. I have been seeing that when pasting text into a field then exiting the field, closeField is not getting sent to that field. Here are a couple handlers for your frontScript to deal with that. It only works with fields whose name begins with "old" otherwise this would trigger the script