diff options
author | Michael Alexsander Silva Dias <michaelalexsander@protonmail.com> | 2017-12-15 22:46:36 -0200 |
---|---|---|
committer | Michael Alexsander Silva Dias <michaelalexsander@protonmail.com> | 2017-12-15 22:46:36 -0200 |
commit | e73486aed43abb001172bcfd47192bbc156c7783 (patch) | |
tree | 0e047111f0498def3984a67a8965a2e63811c15e | |
parent | f25d9a54cec74cca69b0dec72e0f0e34f328480d (diff) |
Made multiline property editor deselect text when opening.
-rw-r--r-- | editor/property_editor.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/property_editor.cpp b/editor/property_editor.cpp index d22bee40d9..16ce364b92 100644 --- a/editor/property_editor.cpp +++ b/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"); |