1

How can firefox's keyboard shortcut control+W, which closes a tab, be disabled? There's nothing in about:config under browser.tabs.

(When in a web session that is a virtual host's console, that's the venerable Linux keystroke to delete the last word you've typed. Deleting not just a word but the entire console is astonishing.)

Firefox 112.0.1 on Ubuntu 22.

Regarding the answers to Change key bindings (keyboard shortcuts) in Firefox Quantum:

  • Errge's "patch firefox" answer fails in Ubuntu 22, because firefox is now in /snap which is a read-only filesystem, thus unpatchable.
  • Benedikt's answer using autoconfig failed to disable Ctrl+W, with config.js window.document.getElementById('key_close');. I don't know why.
  • The other answers aren't for Linux.

0 Answers0