The code within contextMenuEvent() works correctly on Mac OS X now. This effectively reverts commit 683566ce