Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
#4076 fix (#4161)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreiMisiukevich authored and StephaneDelcroix committed Oct 25, 2018
1 parent 71429f7 commit 7d2cc4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Xamarin.Forms.Platform.MacOS/Renderers/EntryRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ void HandleWindowDidResignKey(object sender, EventArgs args)

void HandleWindowDidBecomeKey(object sender, EventArgs args)
{
if (CurrentEditor == Window.FirstResponder)
if (Window != null && CurrentEditor == Window.FirstResponder)
FocusChanged?.Invoke(this, new BoolEventArgs(true));
}
}
Expand Down

0 comments on commit 7d2cc4d

Please sign in to comment.