How can I change Firefox switching tabs shortcuts?

I was used to press Control+1, Control+2 and so on to switch between tabs in Firefox. Now, in Unity, I have to use the Alt key instead. How can I change that?

Thanks!


There is a nice add-on you can try called KeyConfig available from here. Unfortunately the author hasn't added this to the official Mozilla Addons.

If you still want to try this "untrusted" add-on, click on the keyconfig.xpi and install it. Then go to your firefox addons to display various keybindings offered by the addon

enter image description here

Click on the box shown by the arrow and choose your key combination - CTRL + 1.

This will change the value in the box to CTRL+1. Click the Apply button

Repeat for the rest of the "key_selectTab" values.


I've added support for this to my Windows Shortcuts extension (version 0.2).

It's a trival extension with no options.

It sets these shortcuts:

  • Ctrl+J = Downloads
  • Ctrl+E = Search
  • Ctrl+number = Switch to tab number (e.g. Ctrl+1 = switch to first tab)

It's easy to change manually:

http://www-archive.mozilla.org/unix/customizing.html#keys

You can also search for addons that may do it more easy, but changing the accelKey number in about:config is not that hard.


Going off of @Aron's answer, simply perform the following steps:

  1. Go to about:config in the URL bar
  2. Search for accelKey
  3. Change the value to 17 for CTRL or 18 for ALT
  4. Restart Firefox

As time progressed, some solutions may not work anymore, for example because extensions mentioned are not compatible anymore with current Firefox versions (Quantum et al).

The "Ctrl+Number to switch tabs by Abigail" extension is released more-recently (Nov. 2017), and worked for me:

Adds keyboard shortcut Ctrl+1 to switch to the first tab, Ctrl+2 to switch to the second, and so on. Ctrl+9 switches to the last tab.

Thank you, Abigail.