Microsoft/vscode

Right click in WebView causes focus to shift to the last active Tree View Item

Open

#177,784 opened on 2023年3月21日

GitHub で見る
 (0 comments) (0 reactions) (1 assignee)TypeScript (10,221 forks)batch import
bughelp wantedwebview

Repository metrics

Stars
 (74,848 stars)
PR merge metrics
 (平均マージ 11h 43m) (30d で 1,000 merged PRs)

説明

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.76.2
  • OS Version: Windows 10

Steps to Reproduce:

  1. Clone the following sample: https://github.com/microsoft/vscode-extension-samples/blob/main/webview-sample
  2. Run the extension and open the WebView
  3. Click on any tree view item (like in the explorer)
  4. 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:

https://user-images.githubusercontent.com/12927950/226585223-ce73ab7b-62c2-41d9-8786-e42d109024c8.mp4

コントリビューターガイド