fix copy and paste issue in Chrome and Safari
This commit is contained in:
parent
b6c2dace95
commit
b6da535e20
1 changed files with 2 additions and 0 deletions
|
|
@ -71,6 +71,7 @@ var TextInput = function(parentNode, host) {
|
|||
text.value = host.getCopyText();
|
||||
text.select();
|
||||
copied = true;
|
||||
setTimeout(sendText, 0);
|
||||
};
|
||||
|
||||
var onCut = function() {
|
||||
|
|
@ -78,6 +79,7 @@ var TextInput = function(parentNode, host) {
|
|||
text.value = host.getCopyText();
|
||||
host.onCut();
|
||||
text.select();
|
||||
setTimeout(sendText, 0);
|
||||
};
|
||||
|
||||
event.addListener(text, "keypress", onTextInput);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue