How to Close a Window with One Button on Windows and Mac
Learn how to quickly close a window using one button on Windows (Alt + F4) and Mac (Command + W). Easy keyboard shortcuts explained.
280 views
To close a window with one button, simply press Alt + F4 on Windows or Command + W on Mac. This command immediately closes the active window. For Windows, if you're on your desktop with no active window, Alt + F4 opens the shutdown window. It's a quick way to close windows without using the mouse!
FAQs & Answers
- What happens if I press Alt + F4 on Windows desktop? Pressing Alt + F4 on the Windows desktop opens the shutdown dialog box, allowing you to shut down or restart your PC.
- Can I customize the shortcut for closing windows on my computer? Most operating systems don’t allow customizing the default close window shortcuts, but you can use third-party software to assign different keys.
- Does Command + W close all windows on a Mac? No, Command + W closes the active or frontmost window or tab, but it does not close all open windows at once.