### 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)
Node *p = p_desired_node;
	bool result = false;
	Vector<Node *> instances;
	while (true) {
		if (p->get_scene_file_path() == p_target_scene_path) {
			result = true;
			break;
		}
		Ref<SceneState> ss = p->get_scene_inherited_state();
		if (ss.is_valid()) {
			String path = ss->get_path();
			Ref<PackedScene> pack_data = ResourceLoader::load(path);
			if (pack_data.is_valid()) {
				p = pack_data->instantiate(PackedScene::GEN_EDIT_STATE_INSTANCE);
				if (!p) {
					continue;
				}
				instances.push_back(p);
			} else {
				break;
			}
		} else {
			break;
		}
	}
	for (int i = 0; i < instances.size(); i++) {