How rawKeyUp is handled

Bob Sneidar bobsneidar at iotecdigital.com
Wed Oct 11 17:18:18 EDT 2023


Okay, belay my last. Something else is preventing the key from entering the field. I just tested it in new stack with a new field. 

Bob S


-----Original Message-----
From: use-livecode <use-livecode-bounces at lists.runrev.com> On Behalf Of Bob Sneidar via use-livecode
Sent: Wednesday, October 11, 2023 1:59 PM
To: How to use LiveCode <use-livecode at lists.runrev.com>
Cc: Bob Sneidar <bobsneidar at iotecdigital.com>
Subject: How rawKeyUp is handled

Hi all.

I just found a strange oddity where on MacOS when I type a keyboard key in a field with a rawKeyUp handler, the letter is typed first, then the field gets the rawKeyUp message. This allows me to check the contents of the field for empty in case the user hit the backspace key to erase whatever was in the field.

On WINDOWS however, the letter is put into the field AFTER the rawKeyUp message, and since the handler exits to top if the field is empty, I can never type anything into the field!

More specifically, I have a field I use for hot typing a value, and after 1 second of no new data, it launches a database query to search for records matching what was entered. I call it the FindBar group and I use it EVERYWHERE!

So my question is, is this the expected behavior on a Windows OS??

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



More information about the use-livecode mailing list