7 days free

How to stop ⌘Q quitting apps by accident on Mac

⌘Q sits right next to ⌘W and ⌘Tab. One slip and the whole app is gone. Make it hold-to-quit instead.

Short answer

macOS quits instantly on ⌘Q. MacFixes makes you hold it for a moment first, with a progress ring, so a tap does nothing.

Part of MacFixes: 7 days free, then $2.99 a month or $17.99 once, with every app and fix included.

What macOS gives you

Most apps quit the moment you press ⌘Q. A few browsers have their own “warn before quitting” setting. You can also give one app’s Quit command a different shortcut in System Settings → Keyboard → Keyboard Shortcuts → App Shortcuts, typing its exact menu name, one app at a time. There’s no system-wide option.

How MacFixes fixes it

  1. 1
    Turn on the fix
    Open MacFixes Settings → Windows and turn on “Quit protection” (or type its name into Search for a fix).
  2. 2
    Allow Accessibility
    macOS asks for Accessibility permission so MacFixes can catch ⌘Q before the app does.
  3. 3
    Hold to quit
    A quick ⌘Q now does nothing. Hold it and a ring fills; when it’s full, the app quits.
DownloadmacOS 14 Sonoma or later · 7 days free

Why ⌘Q is so easy to press by accident

On a Mac keyboard, Q sits between Tab and W, in the same row. ⌘W closes a window or a tab, and ⌘Tab switches apps, so two of the shortcuts you press most often all day are each one key away from the one that quits the whole app. Reach slightly too far for ⌘W and the browser closes with every tab and window in it.

There’s a second way in. While you hold ⌘ in the app switcher, pressing Q quits whichever app is highlighted. It’s handy on purpose and easy to do by mistake: let go of Tab a moment late, catch Q on the way, and an app you weren’t even looking at is gone.

What you lose depends on the app. Most document apps ask before quitting with unsaved changes, and many save as you go. The real cost is everything that isn’t a document: a browser’s open tabs and windows, a call you were on, a download, a long export, a terminal session, the way you had your windows laid out. None of that asks first.

What you can do with macOS alone

Give Quit a different shortcut, one app at a time. Open System Settings → Keyboard, click Keyboard Shortcuts and choose App Shortcuts. Click +, pick the app, type the name of its Quit menu item exactly as it appears in the app’s own menu — “Quit Safari”, “Quit Google Chrome” — and record a new shortcut. ⌘Q then does nothing in that app, and the new combination quits it. Choose one that’s hard to hit by accident and not already taken: not ⇧⌘Q, which logs you out of the Mac, and not ⌃⌘Q, which locks the screen.

The catch is the menu name. App Shortcuts matches a menu item by its exact title, and every app’s Quit item carries the app’s own name, so one entry under All Applications can’t cover them. You add an entry for each app you want to protect, and again for each new app you install.

Use the app’s own warning, where it has one. Google Chrome has Warn Before Quitting in its Chrome menu: with it ticked, a single ⌘Q only shows a reminder and you hold ⌘Q to quit. A few other apps have a similar setting. Safari and most apps have none.

Make an accidental quit cheaper. In System Settings → Desktop & Dock, turning off “Close windows when quitting an application” asks apps that support it to bring their windows back the next time you open them. If Safari closes on you, History → Reopen All Windows from Last Session brings back what you had; in Chrome, ⇧⌘T reopens what was closed.

How hold-to-quit works

With Quit protection on, a tap of ⌘Q no longer quits. Hold it and a ring fills to show how far along you are; keep holding until it’s full and the app quits, or let go to cancel. A quit you meant takes a moment longer, and one you didn’t mean never happens.

It covers ⌘Q pressed in any app, so there are no menu names to type and nothing to add when you install something new. For the apps where you’d rather keep the instant ⌘Q — a utility you open and quit many times a day, say — put them on the exception list, and ⌘Q quits them the moment you press it, as before.

To see ⌘Q before the app in front does, MacFixes needs macOS’s Accessibility permission. The section below says what that permission allows and where to take it back.

Other ways a Mac closes more than you meant

Quitting isn’t the only surprise. On a Mac, closing an app’s last window usually leaves the app running, which is the opposite problem; if you’d rather the red button quit it, make closing the last window quit the app. And if you quit everything on purpose at the end of the day, save your open apps and bring them all back the next morning, browser tabs included.

If what you’re after is fewer apps left running rather than fewer quit by mistake, have apps you pick quit on their own after sitting unused for a while.

Permissions, and turning it off

“Quit protection” needs macOS’s Accessibility permission. macOS asks you, and you allow it once.

  • Accessibility lets an app see and work the windows, menus and buttons of other apps, and click or type for you. You can see it, and take it back, in System Settings → Privacy & Security → Accessibility.

To stop using it, open MacFixes Settings → Windows and use the switch on the “Quit protection” row.

Questions

Can I exclude an app?

Yes. Apps on the exception list quit on ⌘Q as normal.

Can I turn off ⌘Q completely on a Mac?

Not system-wide. You can give one app’s Quit item a different shortcut in System Settings → Keyboard → Keyboard Shortcuts → App Shortcuts, typing its exact menu name, one app at a time. MacFixes makes every app need a hold of ⌘Q instead.

Is there a shortcut that won’t clash if I remap Quit?

Pick a combination no app in your menus already uses. Avoid ⇧⌘Q, which logs you out, and ⌃⌘Q, which locks the screen.

I quit an app by accident. How do I get my windows back?

Open the app again. In Safari, History → Reopen All Windows from Last Session restores your windows and tabs; in Chrome, ⇧⌘T reopens what was closed. Turning off “Close windows when quitting an application” in System Settings → Desktop & Dock helps apps that support it reopen where they were.

Does Safari have a warn-before-quitting option?

No. Chrome has Warn Before Quitting in its Chrome menu; Safari doesn’t offer one.

What does it cost?

Quit protection comes with MacFixes: 7 days free, then $2.99 a month or $17.99 once.

More fixes macOS doesn’t give you

One of 47 fixes and 10 apps in MacFixes. Every fix · Every app · Something else your Mac won’t do? Request it.

Stop ⌘Q quitting apps by accident with MacFixes

MacFixes has 47 fixes for things macOS gets wrong or leaves out. Add only the ones you want. Free for 7 days, then $2.99 a month or $17.99 once. macOS 14 Sonoma or later.

Download