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: 10501
Joined: Wed May 06, 2009 2:28 pm

KeyUp message has disappeared.

Post 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
SWEdeAndy
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 328
Joined: Sat Aug 16, 2008 9:48 am
Contact:

Re: KeyUp message has disappeared.

Post 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.
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: 3209
Joined: Sun Jun 04, 2006 9:39 pm

Re: KeyUp message has disappeared.

Post by stam »

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: 10501
Joined: Wed May 06, 2009 2:28 pm

Re: KeyUp message has disappeared.

Post by dunbarx »

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: 10415
Joined: Fri Feb 19, 2010 10:17 am

Re: KeyUp message has disappeared.

Post by richmond62 »

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: 10501
Joined: Wed May 06, 2009 2:28 pm

Re: KeyUp message has disappeared.

Post by dunbarx »

It works fine on my home machine.

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

Craig
Post Reply