### 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
hbc->add_child(add_meta_type);
		Control *spacing = memnew(Control);
		vbc->add_child(spacing);
		spacing->set_custom_minimum_size(Size2(0, 10 * EDSCALE));
		add_meta_dialog->set_ok_button_text(TTR("Add"));
		add_child(add_meta_dialog);
		add_meta_dialog->register_text_enter(add_meta_name);
		add_meta_dialog->connect("confirmed", callable_mp(this, &EditorInspector::_add_meta_confirm));
		add_meta_error_panel = memnew(PanelContainer);
		vbc->add_child(add_meta_error_panel);
		if (is_inside_tree()) {
			add_meta_error_panel->add_theme_style_override("panel", get_theme_stylebox(SNAME("panel"), SNAME("Tree")));
		}
		add_meta_error = memnew(Label);
		add_meta_error_panel->add_child(add_meta_error);
		add_meta_name->connect("text_changed", callable_mp(this, &EditorInspector::_check_meta_name));
	}
	Node *node = Object::cast_to<Node>(object);
	if (node) {
		add_meta_dialog->set_title(vformat(TTR("Add Metadata Property for \"%s\""), node->get_name()));
	} else {
		
		add_meta_dialog->set_title(vformat(TTR("Add Metadata Property for \"%s\""), object->get_class()));
	}
	add_meta_dialog->popup_centered();
	add_meta_name->set_text("");
	_check_meta_name("");
	add_meta_name->grab_focus();
}
void EditorInspector::_bind_methods() {