Skip to content

Commit

Permalink
SceneTreeDialog: focus search bar by default
Browse files Browse the repository at this point in the history
  • Loading branch information
RedMser committed Sep 23, 2022
1 parent 56e847e commit 3183b73
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions editor/scene_tree_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 3183b73

Please sign in to comment.