Revert "Restore previous focus after setting HTML5 clipboard"

This reverts commit 8ca1927844.
This commit is contained in:
Joshua Granick
2020-03-18 13:56:38 -07:00
parent 42283e61bb
commit 84dba98700

View File

@@ -915,9 +915,6 @@ class HTML5Window
textArea.style.width = "0px";
Browser.document.body.appendChild(textArea);
}
var cacheElement = Browser.document.activeElement;
textArea.value = value;
textArea.focus();
textArea.select();
@@ -926,11 +923,6 @@ class HTML5Window
{
Browser.document.execCommand("copy");
}
if (cacheElement != null && cacheElement != textArea)
{
cacheElement.focus();
}
}
public function setCursor(value:MouseCursor):MouseCursor