mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 14:45:29 +00:00
+ Fixed a bug whereby hitting return in the group name would zoom in on the selected tab.
This commit is contained in:
parent
45f16d7439
commit
2aab21c77c
@ -219,15 +219,15 @@ window.Page = {
|
||||
self.setActiveTab(nextTab);
|
||||
}
|
||||
e.preventDefault();
|
||||
}
|
||||
});
|
||||
|
||||
$(window).keyup(function(e){
|
||||
// If you hit escape or return, zoom into the active tab,
|
||||
// but only if a title or other element isn't focused.
|
||||
}
|
||||
|
||||
Utils.log('hizzzzz', $(":focus").length );
|
||||
if((e.which == 27 || e.which == 13) && $(":focus").length == 0 )
|
||||
if( self.getActiveTab() ) self.getActiveTab().zoom();
|
||||
|
||||
|
||||
});
|
||||
|
||||
},
|
||||
|
||||
// ----------
|
||||
|
Loading…
Reference in New Issue
Block a user