Skip to content

Commit 18b849c

Browse files
committed
Merge pull request godotengine#106688 from sakubou/106306-ignore-f2-in-remote-tab
Disable local-node shortcuts when Remote tab is active in SceneTreeDock
2 parents c10c656 + 6896a76 commit 18b849c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

editor/scene_tree_dock.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,9 @@ void SceneTreeDock::shortcut_input(const Ref<InputEvent> &p_event) {
184184
if (focus_owner && (Object::cast_to<BaseButton>(focus_owner) || Object::cast_to<Range>(focus_owner))) {
185185
return;
186186
}
187+
if (edit_remote->is_pressed()) {
188+
return;
189+
}
187190
_tool_selected(TOOL_RENAME);
188191
} else if (ED_IS_SHORTCUT("scene_tree/batch_rename", p_event)) {
189192
_tool_selected(TOOL_BATCH_RENAME);

0 commit comments

Comments
 (0)