在 iOS webview 移动设备中执行 document.execCommand("copy") 后键盘触发

Keyboard triggering after executing document.execCommand("copy") in iOS webview mobile device

我想在 iOS 移动网络视图中复制文本

正在复制文本,但 iOS 键盘正在打开

document.getElementById("code").select();
document.execCommand("copy");

如何解决这个问题。帮助赞赏

这个帮助我解决了问题。