Skip to content

Make it possible to use drag and drop in a webview #8794

@f111fei

Description

@f111fei
  • VSCode Version: 1.3.0-insider
  • OS Version: windows7

Steps to Reproduce:

  1. Download My extension: https://github.com/f111fei/test-files/raw/master/webview-test-0.0.1.vsix
  2. Run command Hello Webview to open my webview.

Problem:

  1. Drag Button into TextArea. Dragfeedback overlay will prevent my dragging action.
  2. Typing some text in the textarea. Use Ctrl+A to select all, Nothing happen.

Reason

  1. see https://github.com/Microsoft/vscode/blob/master/src/vs/workbench/electron-browser/window.ts#L91, the default drag handler is prevented.
  2. see https://github.com/Microsoft/vscode/blob/master/src/vs/platform/keybinding/browser/keybindingServiceImpl.ts#L380, selectAll handler is prevented.

1

Metadata

Metadata

Assignees

Labels

feature-requestRequest for new features or functionalityhelp wantedIssues identified as good community contribution opportunitiesverification-neededVerification of issue is requestedverifiedVerification succeededwebviewWebview issues

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions