Limit right clicking on calendar to right type of element