fix weird ie8 bug

This commit is contained in:
nightwing 2013-07-23 15:54:15 +04:00
commit 373693a1c4

View file

@ -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) {