Implement the area selection mode.