-
Notifications
You must be signed in to change notification settings - Fork 34.6k
Closed
Labels
author-verification-requestedIssues potentially verifiable by issue authorIssues potentially verifiable by issue authorbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugwebviewWebview issuesWebview issues
Milestone
Description
- VS Code Version: 1.50
- OS Version: Windows 10 && Mac OSX Catalina
Steps to Reproduce:
- Open a full-editor webview in the main editor area
- Open a text file in the editor
- Close the text file using a keyboard shortcut (Cmd+W or Ctrl+F4); the full-editor webview should now receive focus
- Press Cmd+P to open the quick-pick file selector
- Select a file from the quick pick editor; VS Code will jump you to that file
- While editing this file, press Cmd+P again to open the quick-pick file selector
Expected Results:
- I can use keyboard shortcuts for Cut / Copy / Paste while in the quick pick editor
Actual Results:
- All keyboard shortcuts are disabled in this quick pick window.
Root Cause:
During step 5 of the reproduction, VS Code switches focus to the code file you selected from the quick pick. Additionally, a delayed action fires as the quick pick closes. The delayed action tells the system to return focus to the element that previously had focus, which was the full-editor webview.
The full-editor webview thinks it has focus, and as a result it absorbs all cut/copy/paste commands that are defined in webview.contribution.ts.
Does this issue occur when all extensions are disabled?: No
Metadata
Metadata
Assignees
Labels
author-verification-requestedIssues potentially verifiable by issue authorIssues potentially verifiable by issue authorbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugwebviewWebview issuesWebview issues