diff --git a/src/vs/editor/browser/controller/editContext/native/nativeEditContext.ts b/src/vs/editor/browser/controller/editContext/native/nativeEditContext.ts index 9b5236f2885..c7639a0669a 100644 --- a/src/vs/editor/browser/controller/editContext/native/nativeEditContext.ts +++ b/src/vs/editor/browser/controller/editContext/native/nativeEditContext.ts @@ -44,8 +44,6 @@ export class NativeEditContext extends AbstractEditContext { public readonly textArea: FastDomNode; public readonly domNode: FastDomNode; - public ignoreSelectionChange: boolean = false; - private readonly _editContext: EditContext; private readonly _screenReaderSupport: ScreenReaderSupport; @@ -475,10 +473,6 @@ export class NativeEditContext extends AbstractEditContext { return; } } - if (this.ignoreSelectionChange) { - this.ignoreSelectionChange = false; - return; - } const screenReaderContentState = this._screenReaderSupport.screenReaderContentState; if (!screenReaderContentState) { return; diff --git a/src/vs/editor/contrib/clipboard/browser/clipboard.ts b/src/vs/editor/contrib/clipboard/browser/clipboard.ts index 0ae3b41c9cc..6a06a34763d 100644 --- a/src/vs/editor/contrib/clipboard/browser/clipboard.ts +++ b/src/vs/editor/contrib/clipboard/browser/clipboard.ts @@ -248,7 +248,6 @@ if (PasteAction) { result = focusedEditor.getContainerDomNode().ownerDocument.execCommand('paste'); textAreaDomNode.textContent = ''; if (isHTMLElement(currentFocusedElement)) { - nativeEditContext.ignoreSelectionChange = true; currentFocusedElement.focus(); } } else {