mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-01 22:12:26 +01:00
EditContext: Immediately set isFocused field on focus call (#228325)
immediately handle the the field update
This commit is contained in:
committed by
GitHub
parent
d869359453
commit
0bd94f8a4e
@@ -35,6 +35,9 @@ 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);
|
||||
}
|
||||
|
||||
get isFocused(): boolean {
|
||||
|
||||
Reference in New Issue
Block a user