Re: removing Apple-Q from Safari?

From: Lucas Rockwell <lr_at_socrates.berkeley.edu>
Date: Thu Nov 04 2004 - 17:05:55 PST

Greg,

This is easy.

If you have the Apple dev tools installed you can modify the MainMenu.nib
and remove the connection between command-q and the terminate method. Here
is how to do it:

1) Find Safari in the Finder, right-click on the application and
choose "Show Package Contents."

2) Navigate to Contents/Resources/English.lproj and find the MainMenu.nib
file. Double click this file and it will open in Interface Builder.

3) Double click on MainMenu in the MainMenu.nib window. Once you have done
this, click on the word Safari in the MainMenu (looks like the Safari tool
bar) that opens up, click on "Quit Safari" and then choose Attributes from
the popup in NSMenuItem Info window (you may first have to click on
AppController to get the Info window open).

4) Simply remove the "Q" from the box that reads "Key Equivalent:" and
uncheck the box next to the Apple command symbol right below that in the
"Key Modifier:" line.

5) Quit Safari (if it is running), start it back up, and viola, no more
command-q or Quit in the Safari menu.

Let me know if this is not clear. ;-)

Note, you will have to do this each time Safari is updated.

-lucas

On Thu, 4 Nov 2004, Greg Merritt wrote:

>
> Ok, here's an odd request...
>
> I use Safari pretty exclusively, and am a heavy tabs user. I also like
> to use the Apple-W command for closing tabs.
>
> Now, maybe once or twice a month, I'll hit Apple-Q instead of
> Apple-W... and poof! there go all of my beautiful tabbed browsing
> sessions as Safari gracefully quits.
>
> Can anyone refer me to a resource that would show me how to modify the
> behavior of Safari so that it ignores Apple-Q, maps the Quit function
> to a more complex key sequence (Apple-ctrl-option-shift-Q, heh), or
> removes Quit altogether? I know that there are haxies for *adding*
> Quit to the Finder; hopefully there's a way to *remove* it from Safari.
>
> Thanks!
> -Greg
>
>
> ------------------------------------------------------------------------
> The following was automatically added to this message by the list server:
>
> For information about MAGNet, its meetings and events, and its
> mailing list, including information on subscribing and unsubscribing,
> see the MAGNet Web site at <http://magnet.berkeley.edu/>.
>

------------------------------------------------------------------------
The following was automatically added to this message by the list server:

For information about MAGNet, its meetings and events, and its
mailing list, including information on subscribing and unsubscribing,
see the MAGNet Web site at <http://magnet.berkeley.edu/>.
Received on Thu Nov 4 17:11:27 2004

This archive was generated by hypermail 2.1.8 : Thu Nov 04 2004 - 17:11:27 PST