### 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 (!valid) {
				continue; 
			}
			
			EditorInspectorCategory *category = memnew(EditorInspectorCategory);
			main_vbox->add_child(category);
			category_vbox = nullptr; 
			String type = p.name;
			String label = p.name;
			doc_name = p.name;
			
			if (!EditorNode::get_editor_data().is_type_recognized(type) && p.hint_string.length() && ResourceLoader::exists(p.hint_string)) {
				Ref<Script> scr = ResourceLoader::load(p.hint_string, "Script");
				if (scr.is_valid()) {
					StringName script_name = EditorNode::get_editor_data().script_class_get_name(scr->get_path());
					
					Vector<DocData::ClassDoc> docs = scr->get_documentation();
					if (!docs.is_empty()) {
						
						
						doc_name = docs[docs.size() - 1].name;
					}
					if (script_name != StringName()) {
						label = script_name;
					}
					
					if (script_name != StringName()) {
						category->icon = EditorNode::get_singleton()->get_class_icon(script_name, "Object");
					} else {