1

How can I disable Ctrl+Q shortcut to close the current app in Ubuntu?

I have seen the top answer under: How can I disable Ctrl+Q for all applications (system wide)? which suggests assigning Ctrl+Q to /bin/false/.

I don't think this should be an accepted answer since some apps that use Ctrl+Q like IntelliJ IDEA won't work with this shortcut anymore.

gsettings get org.gnome.desktop.wm.keybindings close produces only Alt + F4

I use Ubuntu 18.04

abu_bua
  • 11,313
fyrkov
  • 313

1 Answers1

1

It appeared that I mistakenly considered Ctrl+Q as a system-wide shortcut because it closed Firefox, files explorer and Atom editor.
But in fact, it is just a common shortcut for many apps, so it has nothing to do with Ubuntu/Gnome.
The solution in my case was to disable the shortcut separately in each app.

abu_bua
  • 11,313
fyrkov
  • 313