Browse Source

Made multiline property editor deselect text when opening.

Michael Alexsander Silva Dias 7 năm trước cách đây
mục cha
commit
e73486aed4
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      editor/property_editor.cpp

+ 1 - 0
editor/property_editor.cpp

@@ -551,6 +551,7 @@ bool CustomPropertyEditor::edit(Object *p_owner, const String &p_name, Variant::
 
 				text_edit->show();
 				text_edit->set_text(v);
+				text_edit->deselect();
 
 				int button_margin = get_constant("button_margin", "Dialogs");
 				int margin = get_constant("margin", "Dialogs");