You know when you mean to press Control/Command+W to close a tab or window but accidentally hit Control/Command+Q to quit the browser? That sucks, but you can enable protection in both Firefox (all platforms) and Chrome (Mac) so you can catch your mistake before it causes any trouble.
Chrome’s solution is really the more elegant one, but unfortunately it’s Mac-only. Basically, you just go to the Chrome menu and choose “Warn Before Quitting”. Selecting this option will require you to press and hold down Command+Q in order to quit so an accidental keystroke won’t be the end of your browsing session.
If you’re using Firefox you can turn on protection regardless of your operating system, but you may have to enable a secret config option. Here’s what you need to do:
- Open Firefox’s Options/Preferences, go to the Tabs section, and make sure “Warn me when closing multiple tabs” is checked.
- In Firefox’s address bar, type
about:configand accept the warning it gives you.
- This will present you with a long list of config options. Use the filter up top to filter by warnon and make sure all the warnOnWhatever (e.g. warnOnQuit, warnOnRestart) toggles are set to true.
- Now change the filter to quit. You’ll see another toggle called showQuitWarning. Make sure that’s set to true as well.
If you only have a single window open, this won’t warn you when quitting. If you have multiple tabs open, however, Firefox will now always provide an alert if you try to quit, protecting you from any unwanted accidents.
Yes, this is really more shortcut accident insurance than an actual shortcut, but it can save you a bunch of time if you’re prone to mistakenly quitting your browser.
Shortcut of the Day highlights a great shortcut on various platforms from the desktop to mobile devices to the web. You can find more shortcuts here.