diff --git a/lib/ace/keyboard/textinput.js b/lib/ace/keyboard/textinput.js index 24e0ea05..79202931 100644 --- a/lib/ace/keyboard/textinput.js +++ b/lib/ace/keyboard/textinput.js @@ -176,10 +176,15 @@ var TextInput = function(parentNode, host) { if (inComposition && (!text.value || keytable[e.keyCode])) setTimeout(onCompositionEnd, 0); if ((text.value.charCodeAt(0)||0) < 129) { - return; + return syncProperty.call(); } inComposition ? onCompositionUpdate() : onCompositionStart(); }); + // when user presses backspace after focusing the editor + // propertychange isn't called for the next character + event.addListener(text, "keydown", function (e) { + syncProperty.schedule(50); + }); } var onSelect = function(e) {