Better text select detection