WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
226753
alert will trigger keyboard
https://bugs.webkit.org/show_bug.cgi?id=226753
Summary
alert will trigger keyboard
Zuckjet
Reported
2021-06-07 20:12:54 PDT
I want to control clipboard content by javascript: ``` <button id="btn">copy</button> <script src="./index.js"></script> var btn2 = document.getElementById('btn'); btn2.addEventListener('click', copy, false); function copy() { let textArea = document.createElement("textarea"); textArea.value = "copy content"; document.body.appendChild(textArea); textArea.focus(); textArea.select(); document.execCommand("copy"); alert("copy success"); // !!! this line will trigger keyboard, and make page response slowly, if i remove this line, everything is ok. document.body.removeChild(textArea); } ```
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2021-06-14 20:13:15 PDT
<
rdar://problem/79321330
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug