### 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
String error;
	if (p_name == "") {
		error = TTR("Metadata name can't be empty.");
	} else if (!p_name.is_valid_identifier()) {
		error = TTR("Metadata name must be a valid identifier.");
	} else if (object->has_meta(p_name)) {
		error = vformat(TTR("Metadata with name \"%s\" already exists."), p_name);
	} else if (p_name[0] == '_') {
		error = TTR("Names starting with _ are reserved for editor-only metadata.");
	}
	if (error != "") {
		add_meta_error->add_theme_color_override("font_color", get_theme_color(SNAME("error_color"), SNAME("Editor")));
		add_meta_error->set_text(error);
		add_meta_dialog->get_ok_button()->set_disabled(true);
	} else {
		add_meta_error->add_theme_color_override("font_color", get_theme_color(SNAME("success_color"), SNAME("Editor")));
		add_meta_error->set_text(TTR("Metadata name is valid."));
		add_meta_dialog->get_ok_button()->set_disabled(false);
	}
}
void EditorInspector::_show_add_meta_dialog() {