A lot of applications like Firefox, Chrome etc, get closed when I accidentally press Ctrl+Q instead of Ctrl+W because of the proximity of the Q and W keys on the keyboard. Is there a way this shortcut can be removed or reset on a system wide basis?
GNOME – How to Disable Ctrl+Q for All Applications System-Wide
configurationgnomeshortcut-keyssystem
Best Answer
The best way is to disable the keyboard setting in your specific application. For Firefox there is an extension keyconfig. This allows you to change keyboard settings.
If you want to disable Ctrl+Q for your whole system, I would suggest to make a new setting:
/bin/false
as command. Apply your changes.Now you should have a new entry with your applied name and your keyboard setting. Every time you press Ctrl+Q your system will run the command
/bin/false
which basically does nothing. So this is a workaround to disable the setting.