Firefox 1.5, released yesterday, breaks the Cmd+Tab/Cmd+Shift+Tab shortcut for switching tabs that I had grown to love so much and was one of the primary reasons I've stuck with Firefox over Camino and Safari. Instead, Firefox now uses Cmd+Option+Left/Right, which requires use two hands and some hunting around.
Enter keyconfig, an extension designed to allow users to add and modify keyboard shortcuts. A comment on the extention page details how to add next/previous tab functionality to keyconfig using gBrowser.mTabContainer.advanceSelectedTab(±1); Unfortunately, that command didn't allow for looping through tabs, so I modified the code a bit to allow for that functionality. Here it is:
Next Tab
if (gBrowser.mCurrentTab.nextSibling)
gBrowser.mTabContainer.advanceSelectedTab(1);
else
gBrowser.mTabContainer.selectedIndex = 0;
Previous Tab
if (gBrowser.mCurrentTab.previousSibling)
gBrowser.mTabContainer.advanceSelectedTab(-1);
else
while (gBrowser.mCurrentTab.nextSibling)
gBrowser.mTabContainer.selectedIndex++;
Technorati Tags: Firefox, Mozilla, tabs, tabbed browsing, keyconfig, extensions, Mac, OSX, shortcuts, keyboard, user interface, UI







