Skip to content

Commit 1b60028

Browse files
committed
hiding also on the onDidBlurEditorWidget firing
1 parent 1f450dd commit 1b60028

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/vs/workbench/contrib/accessibility/browser/accessibleView.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -567,9 +567,9 @@ export class AccessibleView extends Disposable {
567567
});
568568
this._updateToolbar(this._currentProvider.actions, provider.options.type);
569569

570-
const hide = (e: KeyboardEvent | IKeyboardEvent): void => {
570+
const hide = (e?: KeyboardEvent | IKeyboardEvent): void => {
571571
provider.onClose();
572-
e.stopPropagation();
572+
e?.stopPropagation();
573573
this._contextViewService.hideContextView();
574574
this._updateContextKeys(provider, false);
575575
this._lastProvider = undefined;
@@ -600,7 +600,7 @@ export class AccessibleView extends Disposable {
600600
}));
601601
disposableStore.add(this._editorWidget.onDidBlurEditorWidget(() => {
602602
if (!isActiveElement(this._toolbar.getElement())) {
603-
this._contextViewService.hideContextView();
603+
hide();
604604
}
605605
}));
606606
disposableStore.add(this._editorWidget.onDidContentSizeChange(() => this._layout()));

0 commit comments

Comments
 (0)