Skip to content

Commit badd295

Browse files
authored
First resume the focus tracker then focus (microsoft#252275)
first resume the focus tracker then focus
1 parent 129eabd commit badd295

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vs/editor/browser/controller/editContext/native/nativeEditContext.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,8 @@ export class NativeEditContext extends AbstractEditContext {
203203
let reenableTracking: boolean = false;
204204
this._register(IME.onDidChange(() => {
205205
if (IME.enabled && reenableTracking) {
206-
this.domNode.focus();
207206
this._focusTracker.resume();
207+
this.domNode.focus();
208208
reenableTracking = false;
209209
}
210210
if (!IME.enabled && this.isFocused()) {
@@ -593,7 +593,7 @@ export class NativeEditContext extends AbstractEditContext {
593593
const delta2 = now - this._screenReaderSupport.getIgnoreSelectionChangeTime();
594594
this._screenReaderSupport.resetSelectionChangeTime();
595595
if (delta2 < 100) {
596-
// received a `selectionchange` event within 100ms since we touched the textarea
596+
// received a `selectionchange` event within 100ms since we touched the edit context
597597
// => ignore it, since we caused it
598598
return;
599599
}

0 commit comments

Comments
 (0)