I need to disable the possibility to use command-q shortcut to quit an application to prevent user doing this.
I tried this code in the stack script and in the card script (app has only one card)
Code: Select all
on commandkeydown theKey
if theKey is "q"
then
answer "You cannot quit this way. Enter the data and click Send." with "OK"
end if
end commandKeydown
If I change the "q" with another character (i.e. "y") the dialog box appears after pressing command - y.
Anyone has suggestions?
Thanks in advance!