### Godot version

3.5.1, 4.0 beta 10

### System information

Windows 10

### Issue description

I tried to set a shortcut for `Reparent to New Node`, but the shortcut doesn't trigger. As it's closest neighbour, I tried setting the same shortcut for `Reparent` without problems.

### Steps to reproduce

* Set editor shortcut for `Reparent to New Node` (I set it as Ctrl+G as to group nodes together, but anything is fine - it's not about conflicting shortcut)
* Select a node and press your chosen hotkey

### Minimal reproduction project

N/A (any project is fine, requires modifying editor settings anyway)
}
								undo_redo->add_do_method(anim.ptr(), "remove_track", idx);
								undo_redo->add_undo_method(anim.ptr(), "add_track", anim->track_get_type(i), idx);
								undo_redo->add_undo_method(anim.ptr(), "track_set_path", idx, track_np);
								undo_redo->add_undo_method(anim.ptr(), "track_set_interpolation_type", idx, anim->track_get_interpolation_type(i));
								for (int j = 0; j < anim->track_get_key_count(i); j++) {
									undo_redo->add_undo_method(anim.ptr(), "track_insert_key", idx, anim->track_get_key_time(i, j), anim->track_get_key_value(i, j), anim->track_get_key_transition(i, j));
								}
								ran.erase(i); 
							} else {
								
								NodePath rel_path = new_root_path.rel_path_to(found_path->value);
								NodePath new_path = NodePath(rel_path.get_names(), track_np.get_subnames(), false);
								if (new_path == track_np) {
									continue; 
								}
								undo_redo->add_do_method(anim.ptr(), "track_set_path", i, new_path);
								undo_redo->add_undo_method(anim.ptr(), "track_set_path", i, track_np);
							}
						}
					}
				}
			}
		}
	}
	for (int i = 0; i < p_base->get_child_count(); i++) {
		perform_node_renames(p_base->get_child(i), p_renames, r_rem_anims);
	}
}
void SceneTreeDock::_node_prerenamed(Node *p_node, const String &p_new_name) {