I'm a huge fan of keyboard shortcuts, and I use them especially often in Google Chrome. If you didn't know, control + tab (on mac) switches to the next tab, shift + command + tab goes to the previous tab, and cmd + w closes the current tab. In you accidentally close a tab you can always hit cmd + shift + t to bring it back. Cmd + q, however, is an evil command that the chrome developers put in to mess with unsuspecting victims (no, not really). It closes every tab of every chrome window that you have open. There is also no undo function. While some of us might need that at times with the amount of windows we have open, it can be just about devastating to accidentally hit cmd + q and watch all of your tab close in horror (overestimating just a little bit). This post is about preventing this situation for happening.
The key here is that you don't want to accidentally close all of your browser tabs when you accidentally hit cmd + q. Instead of having to go messing with your system settings, you can adjust this right in Chrome itself. In fact, in the main menu under the Chrome header next to the apple logo there is an option "Warn before quit cmd + q".
Click on this to toggle the option. Once it's activated you should see a checkmark to the left of the words like this:
Now if you accidentally hit cmd + q a nice warning message will pop up. If you really do want to close all the tabs of all your windows, simply hold down the cmd + q keys to trigger the usual functionality. :)
The posts on this site are written and maintained by Jim Lynch. About Jim...