You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bpasero opened this issue
Sep 10, 2020
· 4 comments
Assignees
Labels
bugIssue identified by VS Code Team member as probable bugimportantIssue identified as high-priorityinsiders-releasedPatch has been released in VS Code InsidersverifiedVerification succeededwebIssues related to running VSCode in the webwebviewWebview issues
I think this only reproduces in a built version of VSCode web, not running out of sources. Using bisect I found the commit range to be this: e7920dc...3bc3f95
The text was updated successfully, but these errors were encountered:
bpasero
added
bug
Issue identified by VS Code Team member as probable bug
important
Issue identified as high-priority
webview
Webview issues
web
Issues related to running VSCode in the web
labels
Sep 10, 2020
@mjbvz Yes, that is intentional. In browsers we don't want to ship with keybindings for cmd+c,cmd+v or cmd+x. We want browsers to execute their default action, we don't call preventDefault() and then browsers will invoke copy/paste/cut events without a security prompt. If we were to use a keybinding, we would have to go through clipboardService, which goes through the navigator clipboard API, which is not fully implemented in Firefox (so cmd+v will no longer work there at all) and which prompts in other browsers.
Long story short, my recommendation is that on the web you also do not capture cmd+c/cmd+v/cmd+x and allow the browser to generate copy/paste/cut events and add listeners for these events.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
bugIssue identified by VS Code Team member as probable bugimportantIssue identified as high-priorityinsiders-releasedPatch has been released in VS Code InsidersverifiedVerification succeededwebIssues related to running VSCode in the webwebviewWebview issues
Steps to Reproduce:
<input>
element=> 🐛 it does not work
I think this only reproduces in a built version of VSCode web, not running out of sources. Using bisect I found the commit range to be this: e7920dc...3bc3f95
My guess would be: 7e5937d
The text was updated successfully, but these errors were encountered: