Trapping Command-q

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

On 5/18/06, Jason Tangen <jtangen at> 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 :-)"
     pass commandKeyDown
  end if
end commandKeyDown


More information about the Use-livecode mailing list