[Pkg-mozext-commits] [tabmixplus] 04/19: Focus content area if the selected tab is not blank when Firefox starts

David Prévot taffit at moszumanska.debian.org
Tue Aug 29 08:05:11 UTC 2017


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository tabmixplus.

commit 6c56e9d591f26e8ff9de43168f60ae675bf080e2
Author: onemen <tabmix.onemen at gmail.com>
Date:   Sun Aug 20 15:47:39 2017 +0300

    Focus content area if the selected tab is not blank when Firefox starts
---
 chrome/content/tabmix.js | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/chrome/content/tabmix.js b/chrome/content/tabmix.js
index ce8d6d9..af5796b 100644
--- a/chrome/content/tabmix.js
+++ b/chrome/content/tabmix.js
@@ -168,6 +168,13 @@ Tabmix.getAfterTabsButtonsWidth = function TMP_getAfterTabsButtonsWidth() {
 };
 
 Tabmix.afterDelayedStartup = function() {
+  // focus content area if the selected tab is not blank when Firefox starts
+  setTimeout(() => {
+    if (gURLBar.focused && !gBrowser.isBlankNotBusyTab(gBrowser.selectedTab)) {
+      gBrowser.selectedBrowser.focus();
+    }
+  }, 250);
+
   TabmixTabbar._enablePositionCheck = true;
 
   TMP_TabView.init();

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/tabmixplus.git



More information about the Pkg-mozext-commits mailing list