From 80288aa416591f738fdbe5a1cc4f1ac98faac662 Mon Sep 17 00:00:00 2001 From: Dan Walmsley Date: Fri, 28 Oct 2022 11:48:27 +0100 Subject: [PATCH] use didResignKey notification instead of override resignKey --- native/Avalonia.Native/src/OSX/AvnWindow.mm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/native/Avalonia.Native/src/OSX/AvnWindow.mm b/native/Avalonia.Native/src/OSX/AvnWindow.mm index 03bbed819a3..054b5333db1 100644 --- a/native/Avalonia.Native/src/OSX/AvnWindow.mm +++ b/native/Avalonia.Native/src/OSX/AvnWindow.mm @@ -384,7 +384,7 @@ - (BOOL)windowShouldZoom:(NSWindow *_Nonnull)window toFrame:(NSRect)newFrame return true; } --(void)resignKeyWindow +-(void)windowDidResignKey:(NSNotification *)notification { if(_parent) _parent->BaseEvents->Deactivated(); @@ -392,8 +392,6 @@ -(void)resignKeyWindow [self showAppMenuOnly]; [self invalidateShadow]; - - [super resignKeyWindow]; } - (void)windowDidMove:(NSNotification *_Nonnull)notification