mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
Merge pull request #78960 from kleonc/inspector-follow-focus
Make editor inspector follow focus
This commit is contained in:
commit
c772a5b050
@ -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>
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user