Bug 371055: fix Ctrl+<Num> tab shortcuts (no need to set selected on the tab, since the selectedTab getter eventually does that, regression from bug 370742 which made that property read-only), r=mano

This commit is contained in:
gavin%gavinsharp.com 2007-02-20 21:48:09 +00:00
Родитель e4573744f0
Коммит 4bb9358f0a
1 изменённых файлов: 1 добавлений и 3 удалений

Просмотреть файл

@ -1407,10 +1407,8 @@ function ctrlNumberTabSelection(event)
var oldTab = gBrowser.selectedTab;
var newTab = gBrowser.tabContainer.childNodes[index];
if (newTab != oldTab) {
oldTab.selected = false;
if (newTab != oldTab)
gBrowser.selectedTab = newTab;
}
event.preventDefault();
event.stopPropagation();