Tuesday, September 23, 2008

Disabling Ctrl-key Tab Switching in Firefox

Control (Ctrl) keys will switch tabs by default in various browsers (Firefox, Safari, ?, etc.). Here is the solution (quoted from Simon's posting here): If you use Firefox, there is a config setting in the "about:config" (copy and paste as URL into Firefox in another window) called accesskeycauseactivation where you can apparently disable access key activation. However, due to a bug in Firefox (see: https://bugzilla.mozilla.org/show_bug.cgi?id=319929) this setting needs to be reset on every Firefox restart. You can get the same functionality (or disabling of functionality) by installing the greasemonkey plugin (https://addons.mozilla.org/en-US/firefox/addon/748) and creating an override for the accessKey property on all the page elements. This seems to do the trick and has the added benefit that greasemonkey lets you select the pages that this applies to. To use the greasemonkey user script do the following: 1. Install the greasemonkey plugin. 2. Click on the above accesskey_disable.user.js link. (Greasemonkey will ask if you want to install it. Click install) 3. Open: Tools->Greasemonkey->Manage User Scripts. 4. Add to the included pages specification to cover the sites you want it to be executed on. You should find that the access key activation is now disabled for the sites matching the spec, and the default emacs/readline bindings will work.

No comments: