Add current right-clicked element as target of event in 'show' and 'shown' events.