Implement acceptsFirstMouse so to return YES, otherwise tablees in new windows do not get mouse selection events. (#173)

Seems to match Apple's implementation.
This commit is contained in:
Riccardo 2023-03-02 12:13:50 +01:00 committed by GitHub
parent 829069af34
commit 62d16bff24
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3568,6 +3568,11 @@ static inline NSTimeInterval computePeriod(NSPoint mouseLocationWin,
return NO;
}
- (BOOL) acceptsFirstMouse: (NSEvent *)theEvent
{
return YES;
}
- (void) mouseDown: (NSEvent *)theEvent
{
NSPoint initialLocation = [theEvent locationInWindow];