Changed the way of selecting text areas.