Focus on editor in 4ms

Wasn't focusing after switch, this solves the issue
This commit is contained in:
Matt Pass
2013-02-24 11:07:02 +00:00
parent 9ffab47f83
commit 25fd009be3

View File

@@ -1518,7 +1518,7 @@ var ICEcoder = {
cM.getWrapperElement().style.display = "block";
// Focus on & refresh our selected instance
if (!noFocus) {cM.focus();}
if (!noFocus) {setTimeout(function() {cM.focus();},4);}
cM.refresh();
// Highlight the selected tab