### 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
if (!add_meta_dialog) {
		add_meta_dialog = memnew(ConfirmationDialog);
		VBoxContainer *vbc = memnew(VBoxContainer);
		add_meta_dialog->add_child(vbc);
		HBoxContainer *hbc = memnew(HBoxContainer);
		vbc->add_child(hbc);
		hbc->add_child(memnew(Label(TTR("Name:"))));
		add_meta_name = memnew(LineEdit);
		add_meta_name->set_custom_minimum_size(Size2(200 * EDSCALE, 1));
		hbc->add_child(add_meta_name);
		hbc->add_child(memnew(Label(TTR("Type:"))));
		add_meta_type = memnew(OptionButton);
		for (int i = 0; i < Variant::VARIANT_MAX; i++) {
			if (i == Variant::NIL || i == Variant::RID || i == Variant::CALLABLE || i == Variant::SIGNAL) {
				continue; 
			}
			String type = i == Variant::OBJECT ? String("Resource") : Variant::get_type_name(Variant::Type(i));
			add_meta_type->add_icon_item(get_theme_icon(type, "EditorIcons"), type, i);
		}