フルスクリーンモードになる時にショートカットでタブバーが表示されない問題を修正
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@3952 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
d0a2c3b633
commit
8e480a19d9
@ -1659,8 +1659,6 @@ catch(e) {
|
||||
sv.hideTabbar();
|
||||
},
|
||||
|
||||
keyEventListening : false,
|
||||
|
||||
startListenKeyEvents : function()
|
||||
{
|
||||
if (this.keyEventListening) return;
|
||||
@ -1669,7 +1667,6 @@ catch(e) {
|
||||
window.addEventListener('keypress', this, true);
|
||||
this.keyEventListening = true;
|
||||
},
|
||||
|
||||
endListenKeyEvents : function()
|
||||
{
|
||||
if (!this.keyEventListening) return;
|
||||
@ -1678,6 +1675,13 @@ catch(e) {
|
||||
window.removeEventListener('keypress', this, true);
|
||||
this.keyEventListening = false;
|
||||
},
|
||||
keyEventListening : false,
|
||||
get shouldListenKeyEvents()
|
||||
{
|
||||
return this.getTreePref('tabbar.autoShow.accelKeyDown') ||
|
||||
this.getTreePref('tabbar.autoShow.tabSwitch') ||
|
||||
this.getTreePref('tabbar.autoShow.feedback');
|
||||
},
|
||||
|
||||
onTabbarResized : function(aEvent)
|
||||
{
|
||||
@ -2072,11 +2076,7 @@ catch(e) {
|
||||
case 'extensions.treestyletab.tabbar.autoShow.feedback':
|
||||
if (
|
||||
this.getTreePref('tabbar.autoHide.mode') &&
|
||||
(
|
||||
this.getTreePref('tabbar.autoShow.accelKeyDown') ||
|
||||
this.getTreePref('tabbar.autoShow.tabSwitch') ||
|
||||
this.getTreePref('tabbar.autoShow.feedback')
|
||||
)
|
||||
this.shouldListenKeyEvents
|
||||
) {
|
||||
this.startListenKeyEvents();
|
||||
}
|
||||
|
@ -3572,6 +3572,8 @@ TreeStyleTabBrowser.prototype = {
|
||||
this.mTabBrowser.mPanelContainer.addEventListener('scroll', this, true);
|
||||
if (this.shouldListenMouseMove)
|
||||
this.startListenMouseMove();
|
||||
if (this.mTabBrowser == gBrowser && this.shouldListenKeyEvents)
|
||||
TreeStyleTabService.startListenKeyEvents();
|
||||
|
||||
this.clearTabbarCanvas();
|
||||
this.updateTabbarTransparency();
|
||||
@ -3595,6 +3597,8 @@ TreeStyleTabBrowser.prototype = {
|
||||
this.mTabBrowser.removeEventListener('load', this, true);
|
||||
this.mTabBrowser.mPanelContainer.removeEventListener('scroll', this, true);
|
||||
this.endListenMouseMove();
|
||||
if (this.mTabBrowser == gBrowser)
|
||||
TreeStyleTabService.endListenKeyEvents();
|
||||
|
||||
this.clearTabbarCanvas();
|
||||
this.updateTabbarTransparency();
|
||||
@ -3623,6 +3627,7 @@ TreeStyleTabBrowser.prototype = {
|
||||
{
|
||||
return this.getTreePref('tabbar.autoShow.mousemove') ||
|
||||
this.getTreePref('tabbar.autoShow.accelKeyDown') ||
|
||||
this.getTreePref('tabbar.autoShow.tabSwitch') ||
|
||||
this.getTreePref('tabbar.autoShow.feedback');
|
||||
},
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user