summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorRedMser <redmser.jj2@gmail.com>2022-09-23 18:04:48 +0200
committerRedMser <redmser.jj2@gmail.com>2022-09-23 18:04:48 +0200
commit3183b7371ddcfe71d47ed1105d7f976e763c29e6 (patch)
tree36ee3b1fc3f4ee2ae1be272bc1bd69d1385d8303 /editor
parent56e847ef653ce2b818b9f2095452b6c0c0c44d54 (diff)
SceneTreeDialog: focus search bar by default
Diffstat (limited to 'editor')
-rw-r--r--editor/scene_tree_editor.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/scene_tree_editor.cpp b/editor/scene_tree_editor.cpp
index 0b1e9719b7..7bcc8aa078 100644
--- a/editor/scene_tree_editor.cpp
+++ b/editor/scene_tree_editor.cpp
@@ -1437,6 +1437,9 @@ void SceneTreeDialog::_notification(int p_what) {
case NOTIFICATION_VISIBILITY_CHANGED: {
if (is_visible()) {
tree->update_tree();
+
+ // Select the search bar by default.
+ filter->call_deferred(SNAME("grab_focus"));
}
} break;