KeyUp message has disappeared.

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10309
Joined: Wed May 06, 2009 2:28 pm

KeyUp message has disappeared.

Post by dunbarx » Thu May 29, 2025 8:44 pm

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

SWEdeAndy
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 324
Joined: Sat Aug 16, 2008 9:48 am
Contact:

Re: KeyUp message has disappeared.

Post by SWEdeAndy » Thu May 29, 2025 9:41 pm

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.
Andreas Bergendal
Independent app and system developer
Free LC dev tools: https://github.com/wheninspace
(WIS_WebDeployHelper, WIS_ScriptDependencies, WIS_BrowserAnimation)
WhenInSpace: https://wheninspace.com

stam
Posts: 3064
Joined: Sun Jun 04, 2006 9:39 pm

Re: KeyUp message has disappeared.

Post by stam » Thu May 29, 2025 9:57 pm

I'm afraid it works for me too as is, without having to 'pass' a keyDown handler

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10309
Joined: Wed May 06, 2009 2:28 pm

Re: KeyUp message has disappeared.

Post by dunbarx » Fri May 30, 2025 3:28 pm

Well, like Stam, I was afraid of that.

Will try it on my home machine.

Thanks, guys.

Craig

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10089
Joined: Fri Feb 19, 2010 10:17 am

Re: KeyUp message has disappeared.

Post by richmond62 » Fri May 30, 2025 4:30 pm

Code: Select all

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

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10309
Joined: Wed May 06, 2009 2:28 pm

Re: KeyUp message has disappeared.

Post by dunbarx » Fri May 30, 2025 6:28 pm

It works fine on my home machine.

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

Craig

Post Reply