Fix some editor panels to have focus on change

This commit is contained in:
Wojtek Figat
2022-10-16 19:56:27 +02:00
parent 8dec405f4f
commit b7b4391cff
3 changed files with 3 additions and 0 deletions

View File

@@ -228,6 +228,7 @@ namespace FlaxEditor.Tools.Foliage
{ {
_presenter.Select(_proxy); _presenter.Select(_proxy);
} }
_presenter.Panel.Focus();
} }
private void OnModified() private void OnModified()

View File

@@ -409,6 +409,7 @@ namespace FlaxEditor.Tools.Foliage
{ {
_presenter.Deselect(); _presenter.Deselect();
} }
_presenter.Panel.Focus();
} }
private void RemoveFoliageType(int index) private void RemoveFoliageType(int index)

View File

@@ -252,6 +252,7 @@ namespace FlaxEditor.Tools.Foliage
{ {
_presenter.Deselect(); _presenter.Deselect();
} }
_presenter.Panel.Focus();
} }
private void UpdateFoliageTypesList() private void UpdateFoliageTypesList()