+ Fixed a bug whereby hitting return in the group name would zoom in on the selected tab.

This commit is contained in:
Aza Raskin 2010-05-14 17:23:21 -07:00
parent 45f16d7439
commit 2aab21c77c

View File

@ -220,14 +220,14 @@ window.Page = {
}
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();
});
},
// ----------