linux ime
This commit is contained in:
parent
09bc6119d4
commit
6d4b91f89f
1 changed files with 3 additions and 5 deletions
|
|
@ -387,7 +387,7 @@ var TextInput = function(parentNode, host) {
|
|||
inComposition = false;
|
||||
var timer = setTimeout(function() {
|
||||
var str = text.value.replace(/\x01/g, "");
|
||||
console.log(str, c.lastValue)
|
||||
// console.log(str, c.lastValue)
|
||||
if (inComposition)
|
||||
return
|
||||
else if (str == c.lastValue)
|
||||
|
|
@ -403,10 +403,8 @@ var TextInput = function(parentNode, host) {
|
|||
str = str.replace(/\x01/g, "");
|
||||
if (str == c.lastValue)
|
||||
return "";
|
||||
if (str) {
|
||||
if (c.lastValue)
|
||||
host.undo();
|
||||
}
|
||||
if (c.lastValue)
|
||||
host.undo();
|
||||
return str;
|
||||
}
|
||||
host.onCompositionEnd();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue