### 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
switch (p_what) {
		case NOTIFICATION_READY: {
			EditorFeatureProfileManager::get_singleton()->connect("current_feature_profile_changed", callable_mp(this, &EditorInspector::_feature_profile_changed));
			set_process(is_visible_in_tree());
			_update_inspector_bg();
		} break;
		case NOTIFICATION_ENTER_TREE: {
			if (!sub_inspector) {
				get_tree()->connect("node_removed", callable_mp(this, &EditorInspector::_node_removed));
			}
		} break;
		case NOTIFICATION_THEME_CHANGED: {
			if (add_meta_error_panel) {
				add_meta_error_panel->add_theme_style_override("panel", get_theme_stylebox(SNAME("panel"), SNAME("Tree")));
			}
		} break;
		case NOTIFICATION_PREDELETE: {
			edit(nullptr); 
		} break;
		case NOTIFICATION_EXIT_TREE: {
			if (!sub_inspector) {
				get_tree()->disconnect("node_removed", callable_mp(this, &EditorInspector::_node_removed));
			}
			edit(nullptr);
		} break;
		case NOTIFICATION_VISIBILITY_CHANGED: {
			set_process(is_visible_in_tree());
		} break;
		case NOTIFICATION_PROCESS: {
			if (update_scroll_request >= 0) {