### Godot version

4.1.dev (4d5f10fc3a)

### System information

MacOS 13.1 M1 Pro

### Issue description

When right clicking an element of an array/dictionary it will select it but it will never be unselected (not if you select another node nor by reselecting the node). This leads to a lot of element being marked as selected which makes it a little less readable. When doing a left click it won't select.

### Steps to reproduce

1. export an array 
2. add an element 
3. try left click it won't select
4. try right click it will select

### Minimal reproduction project

N/A
ae.move_texture_rect->set_default_cursor_shape(Control::CURSOR_MOVE);
			if (is_inside_tree()) {
				ae.move_texture_rect->set_texture(get_theme_icon(SNAME("TripleBar"), SNAME("EditorIcons")));
			}
			ae.hbox->add_child(ae.move_texture_rect);
		}
		if (numbered) {
			ae.number = memnew(Label);
			ae.number->add_theme_font_override("font", numbers_font);
			ae.number->set_custom_minimum_size(Size2(numbers_min_w, 0));
			ae.number->set_horizontal_alignment(HORIZONTAL_ALIGNMENT_RIGHT);
			ae.number->set_vertical_alignment(VERTICAL_ALIGNMENT_CENTER);
			ae.number->set_text(itos(begin_array_index + i));
			ae.hbox->add_child(ae.number);
		}
		
		ae.vbox = memnew(VBoxContainer);
		ae.vbox->set_h_size_flags(SIZE_EXPAND_FILL);
		ae.vbox->set_v_size_flags(SIZE_EXPAND_FILL);
		ae.hbox->add_child(ae.vbox);
		ae.erase = memnew(Button);
		ae.erase->set_icon(get_theme_icon(SNAME("Remove"), SNAME("EditorIcons")));
		ae.erase->set_v_size_flags(SIZE_SHRINK_CENTER);
		ae.erase->connect("pressed", callable_mp(this, &EditorInspectorArray::_remove_item).bind(begin_array_index + i));
		ae.hbox->add_child(ae.erase);
	}
	
	add_button->set_visible(page == max_page);
	
	if (max_page > 0) {