Merge branch 'GoaLitiuM-sdl_asset_popup_focus_fix'
This commit is contained in:
@@ -299,7 +299,9 @@ namespace FlaxEditor.GUI.ContextMenu
|
||||
PerformLayout();
|
||||
if (UseVisibilityControl)
|
||||
{
|
||||
#if !PLATFORM_SDL
|
||||
_previouslyFocused = parentWin.FocusedControl;
|
||||
#endif
|
||||
Focus();
|
||||
OnShow();
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user