### 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
return object_class;
}
void EditorInspector::_feature_profile_changed() {
	update_tree();
}
void EditorInspector::set_restrict_to_basic_settings(bool p_restrict) {
	restrict_to_basic = p_restrict;
	update_tree();
}
void EditorInspector::set_property_clipboard(const Variant &p_value) {
	property_clipboard = p_value;
}
Variant EditorInspector::get_property_clipboard() const {
	return property_clipboard;
}
void EditorInspector::_add_meta_confirm() {
	String name = add_meta_name->get_text();
	object->editor_set_section_unfold("metadata", true); 
	Variant defval;
	Callable::CallError ce;
	Variant::construct(Variant::Type(add_meta_type->get_selected_id()), defval, nullptr, 0, ce);
	EditorUndoRedoManager *undo_redo = EditorUndoRedoManager::get_singleton();
	undo_redo->create_action(vformat(TTR("Add metadata %s"), name));
	undo_redo->add_do_method(object, "set_meta", name, defval);
	undo_redo->add_undo_method(object, "remove_meta", name);
	undo_redo->commit_action();
}
void EditorInspector::_check_meta_name(const String &p_name) {