Skip to content

↑↓ moveEnter openEsc close

Close window: the shortcut in 14 apps

14 apps · Mac, Windows, Linux and Chromebook

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.

AppMacWindowsLinuxChromebook
PhotoshopClose the documentCmdWCtrlW——
ChromeOSClose the window———CtrlShiftW
ChromeClose the current windowShiftCmdWCtrlShiftWorAltF4CtrlShiftW—
macOSClose the front windowCmdW———
EdgeClose the window—CtrlShiftWorAltF4——
ExcelClose a workbookCmdWCtrlW——
PowerPointClose the presentationCmdWCtrlW——
WordClose the documentCmdWCtrlW——
FirefoxClose the windowShiftCmdWCtrlShiftWCtrlShiftW—
RaycastClose the Raycast windowCmdW———
tmuxKill the windowCtrlB,Shift7—CtrlB,Shift7—
UbuntuClose the window——AltF4—
UbuntuClose the terminal window · Terminal——CtrlShiftQ—
VS CodeClose windowShiftCmdWCtrlShiftWCtrlShiftW—
Windows 11Close the active item, or exit the active app—AltF4——

Small screen: your system's keys only. Open an app's row for every system.

A dash means the app has no default binding, or does not run, on that system. Open a row for notes and the full key details.

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

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.