fix #906 can't input chinese in ie9
This commit is contained in:
parent
b0a43790b4
commit
bf34500927
1 changed files with 6 additions and 0 deletions
|
|
@ -380,7 +380,13 @@ var TextInput = function(parentNode, host) {
|
||||||
var onCompositionEnd = function(e) {
|
var onCompositionEnd = function(e) {
|
||||||
var c = inComposition;
|
var c = inComposition;
|
||||||
inComposition = false;
|
inComposition = false;
|
||||||
|
var timer = setTimeout(function() {
|
||||||
|
var str = text.value.replace(/\x01/g, "");
|
||||||
|
if (!inComposition && str == c.lastValue)
|
||||||
|
resetValue();
|
||||||
|
});
|
||||||
inputHandler = function compositionInputHandler(str) {
|
inputHandler = function compositionInputHandler(str) {
|
||||||
|
clearTimeout(timer);
|
||||||
str = str.replace(/\x01/g, "");
|
str = str.replace(/\x01/g, "");
|
||||||
if (str == c.lastValue)
|
if (str == c.lastValue)
|
||||||
return "";
|
return "";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue