Trapping Command-q

Sarah Reichelt sarah.reichelt at gmail.com
Wed May 17 23:21:37 EDT 2006


On 5/18/06, Jason Tangen <jtangen at psy.uq.edu.au> wrote:
> Can someone tell me how to prevent a user from using Command-q to
> quit Revolution?  I'm sure that I used to be able to do it, but not
> anymore.  Did something change?

How about trapping the commandKeyDown message?

on commandKeyDown pKey
  if pKey = "Q" then
     answer "You are not allowed to quit :-)"
  else
     pass commandKeyDown
  end if
end commandKeyDown


HTH,
Sarah



More information about the use-livecode mailing list