kopia lustrzana https://github.com/c9/core
fix wrong tab getting focus when console is hiding
rodzic
70ee2af89e
commit
9879e5ce51
|
@ -334,17 +334,12 @@ define(function(require, module, exports) {
|
||||||
// tab we can find inside the tabs the focussed tab.
|
// tab we can find inside the tabs the focussed tab.
|
||||||
if (tabs.focussedTab
|
if (tabs.focussedTab
|
||||||
&& getPanes().indexOf(tabs.focussedTab.pane) > -1) {
|
&& getPanes().indexOf(tabs.focussedTab.pane) > -1) {
|
||||||
|
var tab;
|
||||||
tabs.getPanes(tabs.container).every(function(pane) {
|
tabs.getPanes(tabs.container).every(function(pane) {
|
||||||
var tab = pane.getTab();
|
tab = pane.activeTab;
|
||||||
if (!tab) {
|
return !tab;
|
||||||
tabs.focusTab(); // blur
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
tabs.focusTab(tab);
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
tabs.focusTab(tab);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Ładowanie…
Reference in New Issue