mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-15 00:53:32 +01:00
Forcably select the tab to the right on "d" for extensions that change the behavior.
This commit is contained in:
@@ -792,10 +792,10 @@ function Tabs() //{{{
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var index = this.index(tab);
|
let index = this.index(tab);
|
||||||
if (focusLeftTab)
|
if (focusLeftTab)
|
||||||
{
|
{
|
||||||
var lastRemovedTab = 0;
|
let lastRemovedTab = 0;
|
||||||
for (let i = index; i > index - count && i >= 0; i--)
|
for (let i = index; i > index - count && i >= 0; i--)
|
||||||
{
|
{
|
||||||
removeOrBlankTab(this.getTab(i));
|
removeOrBlankTab(this.getTab(i));
|
||||||
@@ -805,12 +805,13 @@ function Tabs() //{{{
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
var i = index + count - 1;
|
let i = index + count - 1;
|
||||||
if (i >= this.count)
|
if (i >= this.count)
|
||||||
i = this.count - 1;
|
i = this.count - 1;
|
||||||
|
|
||||||
for (; i >= index; i--)
|
for (; i >= index; i--)
|
||||||
removeOrBlankTab(this.getTab(i));
|
removeOrBlankTab(this.getTab(i));
|
||||||
|
getBrowser().mTabContainer.selectedIndex = index;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user