Skip to content

Commit

Permalink
Only enable webview override commands when webview is focused
Browse files Browse the repository at this point in the history
Fixes #105670

These commands should not apply if you are focused on the explorer or other views
  • Loading branch information
mjbvz committed Aug 31, 2020
1 parent c1967ff commit 6d773cf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const PRIORITY = 100;
function overrideCommandForWebview(command: MultiCommand | undefined, f: (webview: Webview) => void) {
command?.addImplementation(PRIORITY, accessor => {
const webview = getActiveElectronBasedWebview(accessor);
if (webview) {
if (webview && webview.isFocused) {
f(webview);
return true;
}
Expand Down

0 comments on commit 6d773cf

Please sign in to comment.