diff --git a/lib/ace/keyboard/textinput.js b/lib/ace/keyboard/textinput.js index 0fe86f40..e41f3152 100644 --- a/lib/ace/keyboard/textinput.js +++ b/lib/ace/keyboard/textinput.js @@ -51,8 +51,10 @@ var TextInput = function(parentNode, host) { text.style.top = "-2em"; parentNode.insertBefore(text, parentNode.firstChild); - var PLACEHOLDER = useragent.isIE ? "\x01" : "\x01"; - sendText(); + var PLACEHOLDER = useragent.isIE ? "\x01" : "\x00"; + reset(true); + if (isFocused()) + host.onFocus(); var inCompostion = false; var copied = false;