Microsoft/vscode
View on GitHubRight click in WebView causes focus to shift to the last active Tree View Item
Open
#177,784 opened on Mar 21, 2023
bughelp wantedwebview
Repository metrics
- Stars
- (74,848 stars)
- PR merge metrics
- (Avg merge 11h 43m) (1,000 merged PRs in 30d)
Description
Does this issue occur when all extensions are disabled?: Yes
- VS Code Version: 1.76.2
- OS Version: Windows 10
Steps to Reproduce:
- Clone the following sample: https://github.com/microsoft/vscode-extension-samples/blob/main/webview-sample
- Run the extension and open the WebView
- Click on any tree view item (like in the explorer)
- Right click inside the WebView and watch as the tree view item is focused
This is especially annoying if you have a some form of input so you cannot do Right-Click -> Copy/Cut/Paste, see video: