fix issue with nsmenu items (#315)

This commit is contained in:
johnathan-becker 2024-11-18 11:43:58 -07:00 committed by GitHub
parent bc53ea0ecf
commit 82717eefec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1832,6 +1832,11 @@ static float menuBarHeight = 0.0;
inMode: NSEventTrackingRunLoopMode
dequeue: YES];
type = [event type];
if (type == NSLeftMouseUp || type == NSRightMouseUp || type == NSOtherMouseUp)
{
shouldFinish = YES;
break; // Exit the loop to proceed to StopPeriodicEvents
}
if (type == NSAppKitDefined)
{
[[event window] sendEvent: event];