Skip to content

Commit

Permalink
fixed #190 automatically put the focus on the address bar when openin…
Browse files Browse the repository at this point in the history
…g a new child/sibling tab
  • Loading branch information
traxium committed Aug 13, 2017
1 parent 23d6403 commit 75d173b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,7 @@ var windowListener = {
}
ss.setTabValue(newTab, "ttLevel", lvl);
g.selectedTab = newTab;
aDOMWindow.focusAndSelectUrlBar();
};

let openNewChild = function (parent) {
Expand All @@ -569,6 +570,7 @@ var windowListener = {
}
ss.setTabValue(newTab, "ttLevel", (parseInt(lvl) + 1).toString());
g.selectedTab = newTab;
aDOMWindow.focusAndSelectUrlBar();
};

//////////////////// TITLE BAR STANDARD BUTTONS (Minimize, Restore/Maximize, Close) ////////////////////////////
Expand Down Expand Up @@ -2858,6 +2860,7 @@ var windowListener = {
}
ss.setTabValue(newTab, "ttLevel", lvl);
g.selectedTab = newTab;
aDOMWindow.focusAndSelectUrlBar();
}
}, false);

Expand Down

0 comments on commit 75d173b

Please sign in to comment.