Tuesday, August 19, 2008

Change tab switching keys in Firefox 3 - to be Mac like

You will need Keyconfig for FF3 (it's been updated recently to work properly)

- Add a new key: name it nexttab and put in this code:
var tab = gBrowser.mCurrentTab;
if(tab.nextSibling) {
gBrowser.mTabContainer.advanceSelectedTab(1,true);
} else {
gBrowser.mTabContainer.selectedIndex = 0;
}

- make sure to set the global option in the key
- Do the same for previous tab - add new key, name it prevtab and put in same code
but have

gBrowser.mTabContainer.advanceSelectedTab(-1,true);

(and set the global option)
- This will be active on restart or when you start a new window!

No comments: