Skip to content

Commit

Permalink
fix issue with nsmenu items
Browse files Browse the repository at this point in the history
  • Loading branch information
johnathan-becker committed Nov 12, 2024
1 parent c89d743 commit a1850e1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Source/NSMenuView.m
Original file line number Diff line number Diff line change
Expand Up @@ -1832,6 +1832,11 @@ - (BOOL) _trackWithEvent: (NSEvent*)event
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];
Expand Down

0 comments on commit a1850e1

Please sign in to comment.