mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 17:19:48 +01:00
First resume the focus tracker then focus (#252275)
first resume the focus tracker then focus
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user