1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-08 12:40:44 +00:00

SceneTreeDialog: focus search bar by default

This commit is contained in:
RedMser
2022-09-23 18:04:48 +02:00
parent 56e847ef65
commit 3183b7371d

View File

@@ -1437,6 +1437,9 @@ void SceneTreeDialog::_notification(int p_what) {
case NOTIFICATION_VISIBILITY_CHANGED: { case NOTIFICATION_VISIBILITY_CHANGED: {
if (is_visible()) { if (is_visible()) {
tree->update_tree(); tree->update_tree();
// Select the search bar by default.
filter->call_deferred(SNAME("grab_focus"));
} }
} break; } break;