Focus after calling handle focused changed (#228330)

focus after calling handle focused changed
This commit is contained in:
Aiday Marlen Kyzy
2024-09-12 12:31:42 +02:00
committed by GitHub
parent 8bb2e41e2e
commit 20d5971ddb
@@ -34,10 +34,10 @@ export class FocusTracker extends Disposable {
}
public focus(): void {
this._domNode.focus();
// fixes: https://github.com/microsoft/vscode/issues/228147
// Immediately call this method in order to directly set the field isFocused to true so the textInputFocus context key is evaluated correctly
this._handleFocusedChanged(true);
this._domNode.focus();
}
get isFocused(): boolean {