From 75d173b1770628a4b1cc5741b082f8ebda279551 Mon Sep 17 00:00:00 2001 From: traxium Date: Sun, 13 Aug 2017 10:00:09 +0300 Subject: [PATCH] fixed #190 automatically put the focus on the address bar when opening a new child/sibling tab --- bootstrap.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bootstrap.js b/bootstrap.js index 72b25b6..51a1dd5 100644 --- a/bootstrap.js +++ b/bootstrap.js @@ -557,6 +557,7 @@ var windowListener = { } ss.setTabValue(newTab, "ttLevel", lvl); g.selectedTab = newTab; + aDOMWindow.focusAndSelectUrlBar(); }; let openNewChild = function (parent) { @@ -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) //////////////////////////// @@ -2858,6 +2860,7 @@ var windowListener = { } ss.setTabValue(newTab, "ttLevel", lvl); g.selectedTab = newTab; + aDOMWindow.focusAndSelectUrlBar(); } }, false);