Merge pull request #106688 from sakubou/106306-ignore-f2-in-remote-tab
Disable local-node shortcuts when Remote tab is active in SceneTreeDock
This commit is contained in:
commit
18b849cb8f
1 changed files with 3 additions and 0 deletions
|
|
@ -184,6 +184,9 @@ void SceneTreeDock::shortcut_input(const Ref<InputEvent> &p_event) {
|
|||
if (focus_owner && (Object::cast_to<BaseButton>(focus_owner) || Object::cast_to<Range>(focus_owner))) {
|
||||
return;
|
||||
}
|
||||
if (edit_remote->is_pressed()) {
|
||||
return;
|
||||
}
|
||||
_tool_selected(TOOL_RENAME);
|
||||
} else if (ED_IS_SHORTCUT("scene_tree/batch_rename", p_event)) {
|
||||
_tool_selected(TOOL_BATCH_RENAME);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue