mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-04 19:04:12 +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;
|
||||
}
|
||||
|
||||
var index = this.index(tab);
|
||||
let index = this.index(tab);
|
||||
if (focusLeftTab)
|
||||
{
|
||||
var lastRemovedTab = 0;
|
||||
let lastRemovedTab = 0;
|
||||
for (let i = index; i > index - count && i >= 0; i--)
|
||||
{
|
||||
removeOrBlankTab(this.getTab(i));
|
||||
@@ -805,12 +805,13 @@ function Tabs() //{{{
|
||||
}
|
||||
else
|
||||
{
|
||||
var i = index + count - 1;
|
||||
let i = index + count - 1;
|
||||
if (i >= this.count)
|
||||
i = this.count - 1;
|
||||
|
||||
for (; i >= index; i--)
|
||||
removeOrBlankTab(this.getTab(i));
|
||||
getBrowser().mTabContainer.selectedIndex = index;
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user