Skip to content

Paste event propagates to two widgets #16352

@tptaszek

Description

@tptaszek

Bug Description:

Pasting text into a VSCode extension's webview panel results in text being pasted in two places: currently focused widget of the panel and previously focused theia's widget.

Steps to Reproduce:

Here's a zip with a simplest vscode extension (both source code and vsix) that only contributes a webview panel and a command to open it.
test-extension.zip

  1. Run Theia or Theia IDE with attached vscode extension.
  2. Use panel.open ("Open new test panel") command to open new webview panel.
  3. Copy any text into clipboard.
  4. Open e.g. Search panel on the left and set focus in the searchbox.
  5. Set focus in the test panel's input box.
  6. Use Ctrl+V to paste -> text will be pasted in both panel's input and searchbox.

Image

Additional Information

  • Operating System: Windows
  • Theia Version: 1.64

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugbugs found in the applicationui/uxissues related to user interface / user experiencewebviewsissues related to webviews

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions