Change Firefox’s Prev/Next Tab Key Combos

I’ve always wanted to remap Firefox’s key combos for the next/previous tab commands (mostly because I like Safari’s key combos better). Finally, I figured out how:

  1. Install the Keyconfig extension.
  2. Go to Tools -> Keyconfig
  3. Click ‘Add a new key’
  4. In the top box, give your new key combo a friendly label, like ‘Prev Tab’ — In the bottom box, enter this: gBrowser.mTabContainer.advanceSelectedTab(-1);
  5. Click OK
  6. Click in in the bottom textbox and enter the key combo you’d like to use for ‘Prev Tab’
  7. Click Apply
  8. Repeat steps 3 through 7 for ‘Next Tab’ and use this for the bottom box in your definition for ‘Next Tab’: gBrowser.mTabContainer.advanceSelectedTab(1);

That’s it. It appears to work just fine, except that the key combos don’t seem to work on new (blank) tabs, but once you load a page in the tab, it works great.

Comments are closed.