Explorar o código

Merge pull request #66309 from RedMser/focus-search-bar-scene-tree-dialog

focus search bar by default
Rémi Verschelde %!s(int64=3) %!d(string=hai) anos
pai
achega
46635342a1
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      editor/scene_tree_editor.cpp

+ 3 - 0
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;