Fix content browser stealing focus from popup asset windows

This commit is contained in:
Ari Vuollet
2026-08-08 00:10:26 +03:00
parent 70498fa42c
commit 8d0fb85dd5
2 changed files with 4 additions and 0 deletions
@@ -299,7 +299,9 @@ namespace FlaxEditor.GUI.ContextMenu
PerformLayout();
if (UseVisibilityControl)
{
#if !PLATFORM_SDL
_previouslyFocused = parentWin.FocusedControl;
#endif
Focus();
OnShow();
}
+2
View File
@@ -768,9 +768,11 @@ namespace FlaxEditor.Windows
_newElement.Dispose();
_newElement = null;
#if !PLATFORM_SDL
// Focus content window
Focus();
RootWindow?.Focus();
#endif
}
// Refresh database and view now