Browse Source

Add missing nullcheck in AvnView::mouseEvent (#17709)

pull/17717/head
Jumar Macato 1 year ago
committed by GitHub
parent
commit
aa858f3b4e
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 3
      native/Avalonia.Native/src/OSX/AvnView.mm

3
native/Avalonia.Native/src/OSX/AvnView.mm

@ -311,7 +311,8 @@
if(parent != nullptr){
auto parentWindow = parent->Window;
[parentWindow makeFirstResponder:parent->View];
if(parentWindow != nullptr)
[parentWindow makeFirstResponder:parent->View];
}
} else{
[self becomeFirstResponder];

Loading…
Cancel
Save