Browse Source

Call makeFirstResponder when showing window.

This is needed in order for the view to receive keyboard events immediately after showing the window.

Fixes #6202
pull/6212/head
Steven Kirk 5 years ago
parent
commit
ec85bf14e6
  1. 1
      native/Avalonia.Native/src/OSX/window.mm

1
native/Avalonia.Native/src/OSX/window.mm

@ -117,6 +117,7 @@ public:
if(ShouldTakeFocusOnShow() && activate)
{
[Window makeKeyAndOrderFront:Window];
[Window makeFirstResponder:View];
[NSApp activateIgnoringOtherApps:YES];
}
else

Loading…
Cancel
Save