Paste no closeField

Klaus major-k klaus at major-k.de
Fri Mar 11 11:48:21 EST 2022


Hi Bob,

> Am 11.03.2022 um 17:30 schrieb Craig Newman via use-livecode <use-livecode at lists.runrev.com>:
> 
> 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,
the IDE will catch and not pass it.

>> On Mar 11, 2022, at 10:52 AM, Bob Sneidar via use-livecode <use-livecode at lists.runrev.com> wrote:
>> 
>> 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 Mar 11, 2022, at 05:56, Craig Newman via use-livecode <use-livecode at lists.runrev.com> wrote:
>>> 
>>> 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 <use-livecode at lists.runrev.com> wrote:
>>>>> works with fields whose nam

Best

Klaus

--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
klaus at major-k.de




More information about the use-livecode mailing list