Improve #859
This commit is contained in:
@@ -466,8 +466,13 @@ namespace FlaxEditor.Windows
|
|||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public override void OnMouseLeave()
|
public override void OnMouseLeave()
|
||||||
{
|
{
|
||||||
Parent?.Focus();
|
|
||||||
base.OnMouseLeave();
|
base.OnMouseLeave();
|
||||||
|
|
||||||
|
// Remove focus from game window when mouse moves out and the cursor is hidden during game
|
||||||
|
if ((IsFocused || ContainsFocus) && Parent != null && Editor.IsPlayMode && !Screen.CursorVisible)
|
||||||
|
{
|
||||||
|
Parent.Focus();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
|
|||||||
Reference in New Issue
Block a user