reset text on old way cut/copy
This commit is contained in:
parent
1459f36391
commit
67a4a3329c
1 changed files with 12 additions and 2 deletions
|
|
@ -178,7 +178,12 @@ var TextInput = function(parentNode, host) {
|
||||||
cut = true;
|
cut = true;
|
||||||
text.value = data;
|
text.value = data;
|
||||||
text.select();
|
text.select();
|
||||||
setTimeout(function(){ host.onCut() });
|
setTimeout(function(){
|
||||||
|
cut = false;
|
||||||
|
resetValue();
|
||||||
|
resetSelection();
|
||||||
|
host.onCut();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -203,7 +208,12 @@ var TextInput = function(parentNode, host) {
|
||||||
copied = true;
|
copied = true;
|
||||||
text.value = data;
|
text.value = data;
|
||||||
text.select();
|
text.select();
|
||||||
setTimeout(function(){ host.onCopy() });
|
setTimeout(function(){
|
||||||
|
copied = false;
|
||||||
|
resetValue();
|
||||||
|
resetSelection();
|
||||||
|
host.onCopy();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue