Skip to content

Commit

Permalink
hiding also on the onDidBlurEditorWidget firing
Browse files Browse the repository at this point in the history
  • Loading branch information
aiday-mar committed May 23, 2024
1 parent 1f450dd commit 1b60028
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -567,9 +567,9 @@ export class AccessibleView extends Disposable {
});
this._updateToolbar(this._currentProvider.actions, provider.options.type);

const hide = (e: KeyboardEvent | IKeyboardEvent): void => {
const hide = (e?: KeyboardEvent | IKeyboardEvent): void => {
provider.onClose();
e.stopPropagation();
e?.stopPropagation();
this._contextViewService.hideContextView();
this._updateContextKeys(provider, false);
this._lastProvider = undefined;
Expand Down Expand Up @@ -600,7 +600,7 @@ export class AccessibleView extends Disposable {
}));
disposableStore.add(this._editorWidget.onDidBlurEditorWidget(() => {
if (!isActiveElement(this._toolbar.getElement())) {
this._contextViewService.hideContextView();
hide();
}
}));
disposableStore.add(this._editorWidget.onDidContentSizeChange(() => this._layout()));
Expand Down

0 comments on commit 1b60028

Please sign in to comment.