Pass the event which spawned the context menu to the action function.