Skip to content

Commit

Permalink
Merge pull request #78960 from kleonc/inspector-follow-focus
Browse files Browse the repository at this point in the history
Make editor inspector follow focus
  • Loading branch information
akien-mga committed Jan 4, 2024
2 parents b88eddb + c6e8950 commit c772a5b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/classes/EditorInspector.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
</method>
</methods>
<members>
<member name="follow_focus" type="bool" setter="set_follow_focus" getter="is_following_focus" overrides="ScrollContainer" default="true" />
<member name="horizontal_scroll_mode" type="int" setter="set_horizontal_scroll_mode" getter="get_horizontal_scroll_mode" overrides="ScrollContainer" enum="ScrollContainer.ScrollMode" default="0" />
</members>
<signals>
Expand Down
1 change: 1 addition & 0 deletions editor/editor_inspector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4209,6 +4209,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;
Expand Down

0 comments on commit c772a5b

Please sign in to comment.