Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix webview focus issues that prevent cut/copy/paste when opening files with a quick pick #116899

Merged
merged 5 commits into from Feb 19, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -318,10 +318,11 @@ export abstract class BaseWebview<T extends HTMLElement> extends Disposable {
}

protected handleFocusChange(isFocused: boolean): void {
this._focused = isFocused;
if (isFocused) {
if (isFocused && this.element === document.activeElement) {
this._focused = true;
this._onDidFocus.fire();
} else {
this._focused = false;
this._onDidBlur.fire();
}
}
Expand Down