Intercepting arrow keys and menus on XP

Trevor DeVore lists at
Fri Jul 2 15:38:56 CDT 2004

On Jul 2, 2004, at 12:41 PM, Dar Scott wrote:

> On Jul 2, 2004, at 1:14 PM, Trevor DeVore wrote:
>> In an application I trap the arrow keys for navigation purposes.  The 
>> problem is that the arrow keys are trapped (doesn't seem to matter if 
>> my script is in frontScripts or backScripts) even when the user 
>> activates a program menu in XP which means you can't use arrows to 
>> navigate the menus.  Anyone know how to determine if a program is 
>> current open?
> Will it help to check 'the target' in the handler and pass otherwise?

It will :-)

on arrowKey pKey
	if (the short name of owner of target() <> "MainMenu") then
		-- Do all sorts of arrow key code
	end if
end arrowKey


Trevor DeVore
Blue Mango Multimedia
trevor at

More information about the use-livecode mailing list