Skip to content

Commit

Permalink
Merge pull request #8267 from AvaloniaUI/fixes/osx-cef-electron-compa…
Browse files Browse the repository at this point in the history
…tibility

osx: restore missing api for cef - electron compatibility
  • Loading branch information
danwalmsley committed Jun 3, 2022
1 parent 2bd9784 commit ab0c135
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions native/Avalonia.Native/src/OSX/app.mm
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,17 @@ - (void)sendEvent:(NSEvent *)event
_isHandlingSendEvent = oldHandling;
}
}

// This is needed for certain embedded controls DO NOT REMOVE..
- (BOOL) isHandlingSendEvent
{
return _isHandlingSendEvent;
}

- (void)setHandlingSendEvent:(BOOL)handlingSendEvent
{
_isHandlingSendEvent = handlingSendEvent;
}
@end

extern void InitializeAvnApp(IAvnApplicationEvents* events)
Expand Down

0 comments on commit ab0c135

Please sign in to comment.