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
Cmd+C/Ctrl+C doesn't reach web view #6924
Comments
You can always ask for the context of a previewed document, using the underlying |
@jrieken, I still don't quite understand what is and how to get the context of a previewed document, could you please give me an example or more details? And I want to say it again that what I want is allow user to Ctrl+C of the previewed document. Thanks in advance |
You can always run The The problem I see is that the |
@alexandrudima @bpasero It seems like something has changed here and that we now unconditionally eat up Cmd+C. Ideas? |
@jrieken I did not touch this recently, not sure about @alexandrudima. I know we do quite some dances in https://github.com/Microsoft/vscode/blob/master/src/vs/editor/contrib/clipboard/browser/clipboard.ts#L168 to know where to send the action to and we might not handle the webview case here. Also there may be differences between Mac and Windows... |
I can reproduce already in our last release so it seems to be broken since we added the |
@jrieken I think the issue is that we call I think the only way out is to install keybinding listeners within the |
Steps to Reproduce:
However, we can't copy the text from the previewed html in our test, even in the sample extension Preview CSS Properties Sample.
And I think we may have the requirements that, user wish to copy the text(maybe the previewed result is transformed output) in the preview panel.
The text was updated successfully, but these errors were encountered: