How to disable the quit (Ctrl + Q) hotkey for Firefox?

Ctrl + Q inderectly conflicts with Ctrl + W which is used to close tabs, in that sense it’s easy to accidentally hit the former and kill your entire browsing session, all windows included. Navigating only with the mouse massively slows down my workflow.

There are at least the browser.sessionstore.warnOnQuit and browser.warnOnQuit about:config preferences, but both had no effect when set to true on my system.

Not an answer to your question but I use ctrl-F4 to close tabs.

Not an answer to your question but as workaround you could tell FF to remember all open tabs. So if you accidentally close it, it will reopen all tabs again upon start.