Many applications can have multiple tabs open on it, and cmd+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.
cmd+w
closes one tab. Holding it closes tabs repeatedly, but risky that will close tabs from the window we want to keep.
cmd+q
closes all windows.
Any suggestions?