зеркало из https://github.com/mozilla/gecko-dev.git
bug 181586 - Ctrl+0 selects tenth tab instead of reverting to 100% zoom
This commit is contained in:
Родитель
e81d7b47ff
Коммит
23b8aa3b0e
|
@ -498,9 +498,7 @@ function ctrlNumberTabSelection(event)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
var index = event.charCode - 49;
|
var index = event.charCode - 49;
|
||||||
if (index == -1)
|
if (index < 0 || index > 8)
|
||||||
index = 9;
|
|
||||||
if (index < 0 || index > 9)
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (index >= gBrowser.mTabContainer.childNodes.length)
|
if (index >= gBrowser.mTabContainer.childNodes.length)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче