Fix mistype and opera copy/cut selectAll triggering
This commit is contained in:
parent
29f581c61a
commit
46170cd781
1 changed files with 2 additions and 2 deletions
|
|
@ -175,9 +175,9 @@ var TextInput = function(parentNode, host) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!supported) {
|
if (!supported) {
|
||||||
|
cut = true;
|
||||||
text.value = data;
|
text.value = data;
|
||||||
text.select();
|
text.select();
|
||||||
cut = true;
|
|
||||||
setTimeout(function(){ host.onCut() });
|
setTimeout(function(){ host.onCut() });
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
@ -200,9 +200,9 @@ var TextInput = function(parentNode, host) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!supported) {
|
if (!supported) {
|
||||||
|
copied = true;
|
||||||
text.value = data;
|
text.value = data;
|
||||||
text.select();
|
text.select();
|
||||||
copided = true;
|
|
||||||
setTimeout(function(){ host.onCopy() });
|
setTimeout(function(){ host.onCopy() });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue