Hello everyone,
I’m currently struggling with handling Grasshopper mouse events on macOS—specifically the window right-click behavior. My goal is to add a custom menu item to the component that was clicked.
On Windows, everything works as expected: the menu item is added on mouse up and displays correctly.
However, on macOS, the item only appears if it’s added during the mouse down event.
I’ve tested all the typical right-click gestures on Mac (Control+Click, two-finger tap on the trackpad, external mouse right-click, etc.), but the behavior remains inconsistent.
Is there any recommended or platform-independent way to handle context menu customization in Grasshopper that works reliably across both macOS and Windows?
Thanks in advance!