From 2bbcf3330138e64aa15deef513973487d1a235ee Mon Sep 17 00:00:00 2001 From: Aiday Marlen Kyzy Date: Thu, 28 Nov 2024 09:12:57 +0100 Subject: [PATCH] adding --- .../controller/editContext/native/nativeEditContext.ts | 6 ------ src/vs/editor/contrib/clipboard/browser/clipboard.ts | 1 - 2 files changed, 7 deletions(-) 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 {