Change cursor and the deletion mode