diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-09-26 15:50:52 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-09-26 15:50:52 +0200 |
commit | 46635342a1ffaa26782f6a573a53e9017e20ee15 (patch) | |
tree | a2733f74bce6f67021d1744122b077fb05086b4c | |
parent | a587c0a45aa3b8f8b8e3914869d1063192b10e26 (diff) | |
parent | 3183b7371ddcfe71d47ed1105d7f976e763c29e6 (diff) |
Merge pull request #66309 from RedMser/focus-search-bar-scene-tree-dialog
focus search bar by default
-rw-r--r-- | editor/scene_tree_editor.cpp | 3 |
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; |