New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Webview: Copy to clipboard within internal IFRAME does not work on macOS #135017
Comments
I can't reproduce this using the webview sample on VS Code Insiders Please share a minimal example extension that demonsates this issue |
@mjbvz I updated the topic and steps to reproduce the issue. This time I see events in the console but copy to the clipboard still does not work. I have a few questions:
|
Thanks for the example Looks like cmd+c triggers copy properly but the inner iframe never gets it. Relevant code for keyboard dispatch:
To fix this, listen for // In webview
document.addEventListener('copy', (e) => {
// Trigger copy in the iframe
}) VS Code already does this when dispatching copy from the editor into the base webview:
|
Thanks, @mjbvz ! It finally works! Resolved via platformio/platformio-vscode-ide@a1acff8 |
Does this issue occur when all extensions are disabled?: Yes
Steps to Reproduce:
Related issues:
The text was updated successfully, but these errors were encountered: