### 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
}
					Size2 minsize = c->get_combined_minimum_size();
					child_room = MAX(child_room, minsize.width);
					height = MAX(height, minsize.height);
					no_children = false;
				}
				if (no_children) {
					text_size = size.width;
					rect = Rect2(size.width - 1, 0, 1, height);
				} else {
					text_size = MAX(0, size.width - (child_room + 4 * EDSCALE));
					if (is_layout_rtl()) {
						rect = Rect2(1, 0, child_room, height);
					} else {
						rect = Rect2(size.width - child_room, 0, child_room, height);
					}
				}
				if (bottom_editor) {
					int m = 0; 
					bottom_rect = Rect2(m, rect.size.height + get_theme_constant(SNAME("v_separation")), size.width - m, bottom_editor->get_combined_minimum_size().height);
				}
				if (keying) {
					Ref<Texture2D> key;
					if (use_keying_next()) {
						key = get_theme_icon(SNAME("KeyNext"), SNAME("EditorIcons"));
					} else {
						key = get_theme_icon(SNAME("Key"), SNAME("EditorIcons"));
					}
					rect.size.x -= key->get_width() + get_theme_constant(SNAME("hseparator"), SNAME("Tree"));
					if (is_layout_rtl()) {