+ 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

@ -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();
});
},
// ----------