Many applications can have multiple tabs open on it, and Command+W closes a tab, not a window, a great and common example would be Chrome or any browser.
An example would be that I have two browser windows open with two tabs open on each.
The goal is to close just one window with a single shortcut.
Command+W closes one tab. Holding it closes tabs repeatedly, but risky that will close tabs from the window we want to keep.
Command+q closes all windows.
Any suggestions?
31 Answer
According to Google's own Chrome documentation, you can close the current window on Mac using the keyboard shortcut Command+Shift+W.