Close window: the shortcut in 14 apps
On Mac it is usually Cmd+W (6 of 10 apps); on Windows it is usually Ctrl+W (4 of 9 apps); on Linux it is usually Ctrl+Shift+W (3 of 6 apps). The table shows where each app agrees and where it differs.
| App | Mac | Windows | Linux | Chromebook |
|---|---|---|---|---|
| PhotoshopClose the document | CmdW | CtrlW | — | — |
| ChromeOSClose the window | — | — | — | CtrlShiftW |
| ChromeClose the current window | ShiftCmdW | CtrlShiftWorAltF4 | CtrlShiftW | — |
| macOSClose the front window | CmdW | — | — | — |
| EdgeClose the window | — | CtrlShiftWorAltF4 | — | — |
| ExcelClose a workbook | CmdW | CtrlW | — | — |
| PowerPointClose the presentation | CmdW | CtrlW | — | — |
| WordClose the document | CmdW | CtrlW | — | — |
| FirefoxClose the window | ShiftCmdW | CtrlShiftW | CtrlShiftW | — |
| RaycastClose the Raycast window | CmdW | — | — | — |
| tmuxKill the window | CtrlB,Shift7 | — | CtrlB,Shift7 | — |
| UbuntuClose the window | — | — | AltF4 | — |
| UbuntuClose the terminal window · Terminal | — | — | CtrlShiftQ | — |
| VS CodeClose window | ShiftCmdW | CtrlShiftW | CtrlShiftW | — |
| Windows 11Close the active item, or exit the active app | — | AltF4 | — | — |
How the apps compare
- Mac: Cmd+W in Photoshop, macOS, Excel, PowerPoint, Word and Raycast; Cmd+Shift+W in Chrome, Firefox and VS Code; Ctrl+B Shift+7 in tmux.
- Windows: Ctrl+W in Photoshop, Excel, PowerPoint and Word; Ctrl+Shift+W in Chrome, Edge, Firefox and VS Code; Alt+F4 in Windows 11.
- Linux: Ctrl+Shift+W in Chrome, Firefox and VS Code; Ctrl+B Shift+7 in tmux; Alt+F4 in Ubuntu; Ctrl+Shift+Q in Ubuntu.
- Chromebook: Ctrl+Shift+W in ChromeOS.
Where and when it works
- Ubuntu (Terminal).
Learn it by pressing it: Photoshop shortcuts practice, ChromeOS shortcuts practice, Chrome shortcuts practice, macOS shortcuts practice, Edge shortcuts practice, Excel shortcuts practice, PowerPoint shortcuts practice, Word shortcuts practice, Firefox shortcuts practice, Raycast shortcuts practice, tmux shortcuts practice, Ubuntu shortcuts practice, VS Code shortcuts practice or Windows 11 shortcuts practice.