Microsoft/vscode

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

Open

#177,784 创建于 2023年3月21日

在 GitHub 查看
 (0 评论) (0 反应) (1 负责人)TypeScript (10,221 fork)batch import
bughelp wantedwebview

仓库指标

Star
 (74,848 star)
PR 合并指标
 (平均合并 11小时 43分钟) (30 天内合并 1,000 个 PR)

描述

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

贡献者指南