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?
|
|
||||
|
|
|
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 Ctrl+Q to disable for your whole system, I would suggest to make a new setting:
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 |
|||||||||||||
|
|
Probably inserting the shortcut under System -> Preferences -> Keyboard Shortcuts and "disabling" it should do the trick. |
|||||||||
|
|
There is no easy fix since these keyboard shortcuts are defined directly in the program source. If you are up for it, google around for gtkrc, should be possible to overwrite, but I were unsuccessful in doing so. It is not an easy task, but you might have more luck if you go to the gtk developer mailinglist. or on the Gnome IRC (irc.gnome.org) in the #gtk or #gnome channels. |
||||
|
|
|
You can go to System->Preferences->Keyboard Shortcuts and assign this combo to an unused action. For example I assigned CTRL+Q to switch to workspace 12 (No, I don't have 12 workspaces). As a result this system wide setting overrides application one and CTRL+Q no longer closes firefox (likely the combo never reach Firefox). It just do nothing. |
|||
|
|
|
If Ctrl + Q closes the keyboard settings window, like it did for me, set the shortcut to another value, close the window and wait until the updated shortcut appears somewhere in |
|||
|
|
