What Ctrl+Shift+Q does and why you might want to disable it

Ctrl+Shift+Q is a keyboard shortcut that closes your entire browser window or application without warning on most Linux systems and some other platforms. If you hit these keys by accident — or if a child or someone else using your computer presses them — you lose all open tabs and any unsaved work in an instant. There is no confirmation dialog, no "are you sure" prompt.

The shortcut exists because it is fast for people who use it intentionally. But if you find yourself triggering it by mistake, or if you want to prevent accidental closures on a shared computer, you can disable it. The method depends on what operating system and browser you use.

Key Takeaways

  • Ctrl+Shift+Q closes your entire browser or application immediately with no warning on Linux and some other systems.
  • On Linux, you can disable the shortcut through your keyboard settings or by editing your browser's configuration files.
  • On Windows and Mac, the shortcut usually does not work by default, but some browsers or applications may have it enabled.
  • Browser extensions can block specific keyboard shortcuts if your operating system settings do not offer a built-in option.
  • The exact steps vary by your Linux desktop environment (GNOME, KDE, Xfce) or by which browser you use.

Disabling Ctrl+Shift+Q on Linux with GNOME

If you use GNOME (the default desktop on Ubuntu and many other Linux distributions), the shortcut is set at the system level. Open your Settings application and navigate to Keyboard. Look for a section called Keyboard Shortcuts or Custom Shortcuts.

Scroll down to find the entry for "Close Window" or "Quit Application" — the exact name depends on your GNOME version. Click on the shortcut and you will see the current key combination displayed. Press the Backspace key to clear it, then click elsewhere to save. The shortcut is now disabled.

If you cannot find the setting in the main Keyboard panel, open the Activities menu and search for "dconf Editor" or "GNOME Tweaks". These tools let you dig deeper into system shortcuts. In dconf Editor, navigate to org > gnome > desktop > wm > keybindings and look for close-window. Set the value to an empty array by typing @as [] and pressing Enter.

Disabling Ctrl+Shift+Q on Linux with KDE Plasma

KDE Plasma stores keyboard shortcuts in a different place. Open System Settings and go to Shortcuts, then Custom Shortcuts. Look for an entry related to closing windows or quitting applications.

If you do not see Ctrl+Shift+Q listed there, it may be part of the default KDE shortcuts. Go back to Shortcuts and select KDE Component from the dropdown menu. Choose KWin (the window manager) from the list. Find "Close Window" in the list, click it, and clear the shortcut by pressing Backspace or selecting "None".

Disabling Ctrl+Shift+Q in Firefox

Firefox on Linux respects the system-level shortcut, so disabling it in your operating system settings (as described above) will stop it from working in Firefox. However, if you want to disable it only in Firefox and leave the system shortcut active, you can use an extension.

Install the Disable Ctrl-Q and Ctrl-W extension from the Firefox Add-ons store. This extension blocks Ctrl+Shift+Q and other accidental close shortcuts within Firefox only. After installation, the shortcut will no longer close your browser window.

Alternatively, you can edit Firefox's configuration file directly. Type about:config in the address bar and press Enter. Search for browser.sessionstore.max_tabs_undo — this does not directly disable the shortcut, but it does let Firefox recover closed tabs if you accidentally trigger it. A better option is to search for extensions specifically designed to remap or disable keyboard shortcuts.

Disabling Ctrl+Shift+Q in Chrome and Chromium

Chrome and Chromium-based browsers (like Brave, Edge, and Vivaldi) do not have Ctrl+Shift+Q as a built-in shortcut on most systems. If your system-level shortcut is active, it will still close the browser. Disable it using your operating system settings as described above.

If you want an extra layer of protection, install an extension like Disable Keyboard Shortcuts or ShortcutKey Manager from the Chrome Web Store. These extensions let you block specific key combinations within the browser, even if your operating system would normally allow them.

Disabling Ctrl+Shift+Q on Windows and Mac

Windows and Mac do not use Ctrl+Shift+Q as a system-wide shortcut by default. If you are seeing this shortcut close your application on these systems, it is likely specific to that application or a browser extension.

Check your browser's settings or preferences to see if there is a keyboard shortcuts section. In Firefox on Windows, go to Settings > General > Browsing and look for keyboard shortcut options. In Chrome, go to Settings > Keyboard Shortcuts (if available in your version). If the shortcut is not listed there, an installed extension is probably causing it. Disable or remove extensions one at a time to find the culprit.

Using a keyboard remapping tool as a backup

If your operating system does not offer a straightforward way to disable the shortcut, or if you want to remap it to something else entirely, use a keyboard remapping tool. On Linux, xmodmap or xkeyboard-config can reassign keys at the system level. On Windows, AutoHotkey lets you create custom keyboard rules. On Mac, Karabiner-Elements serves the same purpose.

These tools are more technical than using built-in settings, but they give you complete control. For example, with AutoHotkey on Windows, you can write a simple script that does nothing when Ctrl+Shift+Q is pressed, effectively disabling it. Search for tutorials specific to your tool and operating system to get your free guide.

Frequently Asked Questions

Will disabling Ctrl+Shift+Q affect other programs on my computer?

If you disable it through your operating system settings, it will stop working everywhere on your system. If you disable it only in your browser using an extension, it will only affect that browser. Other applications will not be touched either way.

Can I remap Ctrl+Shift+Q to a different key instead of just turning it off?

Yes, but it depends on your system. Linux desktop environments like GNOME and KDE let you reassign shortcuts directly in their settings. On Windows, AutoHotkey can remap the shortcut to a different key combination. On Mac, Karabiner-Elements does the same. Browser extensions typically only block shortcuts, not remap them.

What if I accidentally press Ctrl+Shift+Q and close my browser?

Most browsers have a "Reopen Closed Window" option in the menu or under Ctrl+Shift+T (or Cmd+Shift+T on Mac). This will restore your previous session, including all open tabs. The sooner you do this, the better your chances of recovering everything.

Does Ctrl+Shift+Q work the same way on all Linux distributions?

The shortcut behavior is the same, but where you disable it depends on your desktop environment. Ubuntu uses GNOME, Fedora can use GNOME or KDE, Kubuntu uses KDE, and Xubuntu uses Xfce. Each has its own settings application. Check your system's documentation if you are unsure which desktop environment you have.

Is there a way to add a confirmation dialog before the shortcut closes my browser?

Not through standard settings. However, some browser extensions can intercept the shortcut and show a confirmation prompt before closing. Search your browser's extension store for "close confirmation" or "prevent accidental close" to find options.