How to change Mozilla Firefox quit shortcut?
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
and get $2,000 discount on your first invoice
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Magic Ocean Looping
--
Chapters
00:00 How To Change Mozilla Firefox Quit Shortcut?
00:27 Accepted Answer Score 8
00:57 Answer 2 Score 4
01:50 Answer 3 Score 2
02:25 Answer 4 Score 5
02:42 Thank you
--
Full question
https://superuser.com/questions/943200/h...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#firefox #keyboardshortcuts #ubuntu1404
#avk47
ACCEPTED ANSWER
Score 8
Firefox offers no built-in editor for key bindings.
A solution exists to disable the shortcut starting with version Firefox 87, as given in the comments above by waldyrious. Thanks to Firefox developer Tom Schuster (user evilpie) and the patch to the 20 year-old bugzilla we have the updated answer on superuser, reproduced here:
In about:config
set the preference
browser.quitShortcut.disabled true
and restart the browser for it to take effect.
ANSWER 2
Score 5
To disable the shortcut without installing extensions:
- Type
about:config
in the address bar - Type
browser.showQuitWarning
in the search field - Change the value to
true
ANSWER 3
Score 4
Firefox does not allow changing shortcut keys out of the box (not even in About:config
).
As far as I know, you have two options:
For only disabling ctrl+q, you can use the very simple Disable ctrl-q extension.
For customizing other shortcuts, including ctrl+q, you can install Menu Wizard. To use it, access
Tools->Menu Wizard
and click the keyboard icon on the top right (in LTR layout) to display the list of shortcuts and select a new one.
Note: the Customizable Shortcuts
extension mentioned in the previous answer was discontinued and removed by its author (although the source code can still be found on github). Edit 2016-08-02: the add-on keybinder seems to be a successor to Customizable Shortcuts, although I haven't tried it personally.
ANSWER 4
Score 2
I use Xubuntu, but plain Ubuntu probably has a similar function. Because Firefox itself does not allow to change the Ctrl-Q shortcut, I decided to steal that key combination away from Firefox.
The system gets keystrokes before applications do, so I used the Settings/Keyboard/Application shortcuts to define Ctrl-Q to start some non obtrusive application. I chose the Whisker application menu, but pick whatever. And look: even when Firefox has focus, Ctrl-Q does not reach it.