reset text on old way cut/copy

This commit is contained in:
DanyaPostfactum 2012-11-04 18:54:10 +11:00 committed by nightwing
commit 67a4a3329c

View file

@ -178,7 +178,12 @@ var TextInput = function(parentNode, host) {
cut = true;
text.value = data;
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;
text.value = data;
text.select();
setTimeout(function(){ host.onCopy() });
setTimeout(function(){
copied = false;
resetValue();
resetSelection();
host.onCopy();
});
}