Microsoft/vscode

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

Open

#177 784 ouverte le 21 mars 2023

Voir sur GitHub
 (0 commentaires) (0 réactions) (1 assigné)TypeScript (10 221 forks)batch import
bughelp wantedwebview

Métriques du dépôt

Stars
 (74 848 stars)
Métriques de merge PR
 (Merge moyen 11h 43m) (1 000 PRs mergées en 30 j)

Description

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

Guide contributeur