Bug 338348: Make Ctrl+9 select the last tab instead of the ninth tab, patch by Simon B�nzli <zeniko@gmail.com>, r=mconnor

This commit is contained in:
gavin%gavinsharp.com 2006-06-06 16:28:09 +00:00
Родитель ed8067b554
Коммит ce743abf47
1 изменённых файлов: 4 добавлений и 1 удалений

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

@ -1425,7 +1425,10 @@ function ctrlNumberTabSelection(event)
if (index < 0)
return;
if (index >= gBrowser.tabContainer.childNodes.length)
// [Ctrl]+[9] always selects the last tab
if (index == 8)
index = gBrowser.tabContainer.childNodes.length - 1;
else if (index >= gBrowser.tabContainer.childNodes.length)
return;
var oldTab = gBrowser.selectedTab;