Skip to content

Commit dfcaefa

Browse files
authored
Merge pull request microsoft#184953 from microsoft/merogge/fix-a-bug
prevent repeated event handling
2 parents 6c0a794 + 50941ef commit dfcaefa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,11 @@ class AccessibleView extends Disposable {
105105
}
106106
container.appendChild(this._editorContainer);
107107
this._layout();
108-
this._register(this._editorWidget.onKeyDown((e) => {
108+
this._register(this._editorWidget.onKeyUp((e) => {
109109
if (e.keyCode === KeyCode.Escape) {
110110
this._contextViewService.hideContextView();
111111
}
112+
e.stopPropagation();
112113
provider.onKeyDown?.(e);
113114
}));
114115
this._register(this._editorWidget.onDidBlurEditorText(() => this._contextViewService.hideContextView()));

0 commit comments

Comments
 (0)