You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
SceneTreeDialog: focus search bar by default
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user