Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there any way to have Safari 5 (OS X) ask before exiting? I have fat fingers and often hit Command-Q when I want Command-W.

share|improve this question
up vote 0 down vote accepted

In the tabs section of Safari's preferences, if you check the third option "Confirm before closing multiple tabs or windows", Safari will ask before exiting if you have more than one tab or window open. It won't ask for confirmation if you have only one open, but from what you're saying, that shouldn't be a major issue if you meant to close the window anyway.

share|improve this answer
Ahh! That's what I was looking for. I check all of the other preference tabs except that one :-). – Ralph Sep 23 '10 at 18:42
I'm using OS X 10.8.3, Safari 6.0.3 and the "Confirm before closing multiple tabs or windows" option is not available – hanxue Sep 21 '13 at 16:46
@hanxue I believe that option disappeared in the great iOS-ification of Mac OS X. The idea now is that Safari will by default restore all tabs and windows on re-opening. Alternatively, if you've turned this off by selecting the "Close windows when quitting an application" option in the "General" section of System Preferences, you can use the History -> Reopen All Windows from Last Session menu item to do this manually. – Scott Sep 21 '13 at 21:46
@Scott Thank you for your quick follow up and detailed reply. I manage to solve it by remapping the Quit keyboard shortcut. Google Chrome handles the Quit issue better by having a "Warn before quitting" option. I commented for the benefit of anyone looking at this question in the future. – hanxue Sep 21 '13 at 21:54

I remap Safari’s Quit menu item shortcut to ⌥⌘Q (Option-Command-Q) using the “Keyboard Shortcuts” tab of the “Keyboard & Mouse” preference panel in System Preferences.

share|improve this answer

Safari will prompt if you've edited a text field but not submitted the form yet.

Otherwise, you can get back to where you were after an accidental Quit by going to History > Reopen All Windows From Last Session.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.