Trap Force Quit on OS X?

Devin Asay devin_asay at byu.edu
Wed Jul 28 15:54:37 EDT 2004


Does anyone know of a way to trap the Mac OS X Force Quit key sequence 
(Cmd-Opt-Escape) in Revolution? I want to come up with a way of 
preventing a user from force quitting unless they have a valid 
password. Trapping rawKeyDown,  for example, doesn't work:

on rawKeyDown keyCode
   if the optionKey is down and the commandKey is down then
     if keyCode = 65307 then  --65037 = esc key
       -- ask for a password here
       pass rawKeyDown
     end if
   end if
end rawKeyDown

Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University



More information about the use-livecode mailing list