First resume the focus tracker then focus (#252275)

first resume the focus tracker then focus
This commit is contained in:
Aiday Marlen Kyzy
2025-06-24 12:53:10 +02:00
committed by GitHub
parent 129eabd4e5
commit badd2956bb
@@ -203,8 +203,8 @@ export class NativeEditContext extends AbstractEditContext {
let reenableTracking: boolean = false;
this._register(IME.onDidChange(() => {
if (IME.enabled && reenableTracking) {
this.domNode.focus();
this._focusTracker.resume();
this.domNode.focus();
reenableTracking = false;
}
if (!IME.enabled && this.isFocused()) {
@@ -593,7 +593,7 @@ export class NativeEditContext extends AbstractEditContext {
const delta2 = now - this._screenReaderSupport.getIgnoreSelectionChangeTime();
this._screenReaderSupport.resetSelectionChangeTime();
if (delta2 < 100) {
// received a `selectionchange` event within 100ms since we touched the textarea
// received a `selectionchange` event within 100ms since we touched the edit context
// => ignore it, since we caused it
return;
}