From c6e895050dc59d42d92e1f30f1cf847d1665c442 Mon Sep 17 00:00:00 2001
From: kleonc <9283098+kleonc@users.noreply.github.com>
Date: Sun, 2 Jul 2023 20:44:42 +0200
Subject: [PATCH] Make editor inspector follow focus
---
doc/classes/EditorInspector.xml | 1 +
editor/editor_inspector.cpp | 1 +
2 files changed, 2 insertions(+)
diff --git a/doc/classes/EditorInspector.xml b/doc/classes/EditorInspector.xml
index 377a3b5a6af..af4a006d339 100644
--- a/doc/classes/EditorInspector.xml
+++ b/doc/classes/EditorInspector.xml
@@ -22,6 +22,7 @@
+
diff --git a/editor/editor_inspector.cpp b/editor/editor_inspector.cpp
index e3514b4691b..3395068decb 100644
--- a/editor/editor_inspector.cpp
+++ b/editor/editor_inspector.cpp
@@ -4189,6 +4189,7 @@ EditorInspector::EditorInspector() {
main_vbox->add_theme_constant_override("separation", 0);
add_child(main_vbox);
set_horizontal_scroll_mode(SCROLL_MODE_DISABLED);
+ set_follow_focus(true);
changing = 0;
search_box = nullptr;