Browse Source

Merge pull request #91113 from KoBeWi/acceptator

Register text enter for script base class
Rémi Verschelde 1 năm trước cách đây
mục cha
commit
4bca2d8bc6
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      editor/script_create_dialog.cpp

+ 1 - 0
editor/script_create_dialog.cpp

@@ -883,6 +883,7 @@ ScriptCreateDialog::ScriptCreateDialog() {
 	parent_name->connect("text_changed", callable_mp(this, &ScriptCreateDialog::_parent_name_changed));
 	parent_name->set_h_size_flags(Control::SIZE_EXPAND_FILL);
 	hb->add_child(parent_name);
+	register_text_enter(parent_name);
 	parent_search_button = memnew(Button);
 	parent_search_button->connect("pressed", callable_mp(this, &ScriptCreateDialog::_browse_class_in_tree));
 	hb->add_child(parent_search_button);