From 1a603dfa4e38c4961a458629b4016b054ada61a7 Mon Sep 17 00:00:00 2001 From: nightwing Date: Sun, 16 Sep 2012 22:41:35 +0400 Subject: [PATCH] fix cursor remains hidden if textarea is autofocused --- lib/ace/keyboard/textinput.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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;