I should have added that in OS X closeRequest is called BEFORE the keyDownScript handler or a keyDown test can be applied--Esc seems to bypass that test.
S. At 07:50 PM 8/1/04 -0400, you wrote: >This works in Windows, where I use QuitMsg from mediamacros, but I can't find a way >to make it work in OS X. With exitLock set to true, pressing Esc calls up >closeRequest exactly the way it is called up when the user clicks the Close button in >the title bar or the Quit command in the application's system menu or the Dock. As >Jeff pointed out, there's no way to tell what called closeRequest--the Esc key or one >of the other methods. > >I'd be happy if someone could prove me wrong. > >S. > >At 11:32 AM 8/2/04 +1200, you wrote: > >>>You're right, Jeff--I still can't trap the Escape key when the projector runs under >>>OS X. I wanted to use Escape for other purposes, like I do in Windows. Bummer. >> >>Hang on - can't you set the exitLock so that it won't quit your projector and set a >>keyDownScript to monitor for the escape key's keyCode and respond appropriately? >>This is what I've done on Windows prior to DMX 2004. >> >> >>[To remove yourself from this list, or to change to digest mode, go to >>http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL >>PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping >>with programming Lingo. Thanks!] > >[To remove yourself from this list, or to change to digest mode, go to >http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL >PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping >with programming Lingo. Thanks!] [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]