Update selection status when drawing a rectangle shape.
merge