Merge branch 'context_menu_focus_fixes' of https://github.com/GoaLitiuM/FlaxEngine into GoaLitiuM-context_menu_focus_fixes

This commit is contained in:
Wojtek Figat
2023-02-17 20:27:47 +01:00
3 changed files with 50 additions and 74 deletions

View File

@@ -179,6 +179,8 @@ namespace FlaxEngine.GUI
/// <param name="target">The target.</param>
public void OnMouseLeaveControl(Control target)
{
if (Visible)
Hide();
_lastTarget = null;
}