From 9432e06e056e3272662fa8e0fdf7f7c227b66b1b Mon Sep 17 00:00:00 2001 From: Tomasz Chabora Date: Wed, 10 Apr 2019 17:01:42 +0200 Subject: [PATCH] Focus SceneTree dock after creating new node --- editor/scene_tree_dock.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/editor/scene_tree_dock.cpp b/editor/scene_tree_dock.cpp index 85a56a904d2..752c1afff29 100644 --- a/editor/scene_tree_dock.cpp +++ b/editor/scene_tree_dock.cpp @@ -1848,6 +1848,8 @@ void SceneTreeDock::_create() { replace_node(n, newnode); } } + + scene_tree->get_scene_tree()->call_deferred("grab_focus"); } void SceneTreeDock::replace_node(Node *p_node, Node *p_by_node, bool p_keep_properties) {