I am looking for a way to close the currently focused window using a keyboard shortcut. Effectively I want to do the same thing as the red “X” button in the top left corner, only using a keyboard. On windows/linux this is done by alt+f4
I know about:
- ⌘ Cmd+w – in any tabbed application such as google chrome it will close the current tab instead of current window
- ⌘ Cmd+q – will close the entire app instead of just the current window
Shift+⌘ Cmd+w does what you want in Safari and Chrome. I don’t think it’s a system-wide standard, though.
It works in Finder too so maybe it is a standard.