Set correct event_mask in the RazorTaskButton