Microsoft/vscode

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

Open

#177.784 aperta il 21 mar 2023

Vedi su GitHub
 (0 commenti) (0 reazioni) (1 assegnatario)TypeScript (10.221 fork)batch import
bughelp wantedwebview

Metriche repository

Star
 (74.848 star)
Metriche merge PR
 (Merge medio 11h 43m) (1000 PR mergiate in 30 g)

Descrizione

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

Guida contributor