How do I alt+f4 in OS X? I want to close focused window 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.

https://support.google.com/chrome/answer/157179?hl=en