macOS: Allow NSView subclasses to accept first mouse event.

This brings the behavior in line with Windows and Linux. Going between
multiple windows now doesn't use the first click only to change focus
but also allows Blender to process those events.
This commit is contained in:
Stefan Werner
2019-10-28 22:19:00 +01:00
parent fb3add54d9
commit 2dab4393b0

View File

@@ -58,6 +58,11 @@
return YES;
}
- (BOOL)acceptsFirstMouse:(NSEvent *)event
{
return YES;
}
// The trick to prevent Cocoa from complaining (beeping)
- (void)keyDown:(NSEvent *)event
{