QuitGuard is a lightweight macOS menu bar app that helps prevent accidental Cmd+Q
presses, which can unintentionally close your entire application. This often happens due to the proximity of similar, commonly used shortcuts like Cmd+W
(in Safari), leading to unintended app closures. QuitGuard offers a simple solution by requiring you to press and hold Cmd+Q
to quit, minimizing the chances of these accidental exits.
- Prevents Accidental Quits: Instead of quitting the app immediately when
Cmd+Q
is pressed, QuitGuard requires you to hold theCmd+Q
combination to actually quit. - Menu Bar Integration: The app runs quietly in your Mac's menu bar, allowing easy access to its settings and status.
- Lightweight and Efficient: Built with SwiftUI, QuitGuard is minimalistic and designed to have a small footprint on your system.
You can install the app using either of the following methods:
- Download from the Mac App Store
- Launch QuitGuard. You will see a new icon in your menu bar.
- Accept the system popup to grant Accessibility permissions
- QuitGuard will start monitoring
Cmd+Q
presses. - To quit an app, hold down
Cmd+Q
until the app closes. If you releaseCmd+Q
too quickly, the quit command will be ignored, preventing accidental closures.
Contributions are welcome! Please feel free to submit a pull request or open an issue if you have any suggestions or bug reports.