From 25fd009be3464e9a1efd1a79128e9fcb26db46a4 Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Sun, 24 Feb 2013 11:07:02 +0000 Subject: [PATCH] Focus on editor in 4ms Wasn't focusing after switch, this solves the issue --- lib/ice-coder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ice-coder.js b/lib/ice-coder.js index 8cdf7c0..b698537 100644 --- a/lib/ice-coder.js +++ b/lib/ice-coder.js @@ -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