From 34a552410f206ac09115fd70d18ff5704369f671 Mon Sep 17 00:00:00 2001 From: piro Date: Fri, 14 Aug 2009 14:51:01 +0000 Subject: [PATCH] =?UTF-8?q?Firefox=203.5.x=E3=81=A7=E6=9C=9F=E5=BE=85?= =?UTF-8?q?=E9=80=9A=E3=82=8A=E3=81=AB=E5=8B=95=E3=81=84=E3=81=A6=E3=81=84?= =?UTF-8?q?=E3=81=AA=E3=81=8B=E3=81=A3=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@4946 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/treestyletab.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/content/treestyletab/treestyletab.js b/content/treestyletab/treestyletab.js index 8c25e14d..b8600843 100644 --- a/content/treestyletab/treestyletab.js +++ b/content/treestyletab/treestyletab.js @@ -2134,11 +2134,17 @@ catch(e) { get shouldListenKeyEventsForAutoExpandByFocusChange() { - return !this.getPref('browser.ctrlTab.previews') && + return !this.ctrlTabPreviewsEnabled && !this.getTreePref('autoCollapseExpandSubTreeOnSelect.whileFocusMovingByShortcut') && this.getTreePref('autoCollapseExpandSubTreeOnSelect'); }, + get ctrlTabPreviewsEnabled() + { + return 'allTabs' in window && + this.getPref('browser.ctrlTab.previews'); + }, + // autohide updateAutoHideKeyListeners : function() @@ -2161,7 +2167,7 @@ catch(e) { get shouldListenKeyEventsForAutoHide() { - return !this.getPref('browser.ctrlTab.previews') && + return !this.ctrlTabPreviewsEnabled && ( this.getTreePref('tabbar.autoShow.accelKeyDown') || this.getTreePref('tabbar.autoShow.tabSwitch') ||