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
repro/outsys-sizing-issue
Steven Kirk 5 years ago
parent
commit
d0fce6c898
  1. 1
      native/Avalonia.Native/src/OSX/window.mm

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

@ -129,6 +129,7 @@ public:
{
[Window orderFront: Window];
[Window makeKeyAndOrderFront:Window];
[Window makeFirstResponder:View];
[NSApp activateIgnoringOtherApps:YES];
}
else

Loading…
Cancel
Save