fix wrong tab getting focus when console is hiding

pull/402/head
nightwing 2017-02-02 12:22:48 +04:00
rodzic 70ee2af89e
commit 9879e5ce51
1 zmienionych plików z 4 dodań i 9 usunięć

Wyświetl plik

@ -334,17 +334,12 @@ define(function(require, module, exports) {
// tab we can find inside the tabs the focussed tab.
if (tabs.focussedTab
&& getPanes().indexOf(tabs.focussedTab.pane) > -1) {
var tab;
tabs.getPanes(tabs.container).every(function(pane) {
var tab = pane.getTab();
if (!tab) {
tabs.focusTab(); // blur
return true;
}
else {
tabs.focusTab(tab);
return false;
}
tab = pane.activeTab;
return !tab;
});
tabs.focusTab(tab);
}
}
else {