diff --git a/lib/ace/keyboard/textinput.js b/lib/ace/keyboard/textinput.js index 38fe0923..0bd57eed 100644 --- a/lib/ace/keyboard/textinput.js +++ b/lib/ace/keyboard/textinput.js @@ -76,6 +76,7 @@ var TextInput = function(parentNode, host) { resetSelection(); }); this.focus = function() { + if (tempStyle) return text.focus(); text.style.position = "fixed"; text.style.top = "-1000px"; text.focus();