Return focus to parent on mouse leave.

This commit is contained in:
Chandler Cox
2022-12-16 16:29:43 -06:00
parent 5a50656249
commit fd4b9a5a9f

View File

@@ -345,6 +345,13 @@ namespace FlaxEditor.Windows
Cursor = CursorType.Default;
}
/// <inheritdoc />
public override void OnMouseLeave()
{
Parent?.Focus();
base.OnMouseLeave();
}
/// <inheritdoc />
public override void OnShowContextMenu(ContextMenu menu)
{