Page 1 of 1

KeyUp message has disappeared.

Posted: Thu May 29, 2025 8:44 pm
by dunbarx
This started as a side issue in the thread: viewtopic.php?f=53&t=39738

I have a new stack in a new session with a single field, I cannot trap the "keyUp" message. In the field script:

Code: Select all

on keyUp
   put random(999) into me
end keyUp
What I get is the key value, which actually appears on "keyDown", and is normal behavior.

With an identical "keyDown" handler I get random numbers. By the way, "rawKeyUp" works fine.

Anyone know how to trap the "keyUp" message,, or what happened to it?

Craig

Re: KeyUp message has disappeared.

Posted: Thu May 29, 2025 9:41 pm
by SWEdeAndy
That script works as intended for me, using LC10.0.1-rc-3 and 9.6.13-rc-1 on a Mac Studio running Sequoia 15.5.

Re: KeyUp message has disappeared.

Posted: Thu May 29, 2025 9:57 pm
by stam
I'm afraid it works for me too as is, without having to 'pass' a keyDown handler

Re: KeyUp message has disappeared.

Posted: Fri May 30, 2025 3:28 pm
by dunbarx
Well, like Stam, I was afraid of that.

Will try it on my home machine.

Thanks, guys.

Craig

Re: KeyUp message has disappeared.

Posted: Fri May 30, 2025 4:30 pm
by richmond62

Code: Select all

on keyUp
   put("The Magic Number is " & random(999))
end keyUp
Works "over here": LC 963, MacOS 12

Re: KeyUp message has disappeared.

Posted: Fri May 30, 2025 6:28 pm
by dunbarx
It works fine on my home machine.

A mystery. I will post my machine data, but it is a Mac mini.

Craig