summaryrefslogtreecommitdiff
path: root/editor/property_editor.cpp
diff options
context:
space:
mode:
authorMichael Alexsander Silva Dias <michaelalexsander@protonmail.com>2017-12-15 22:46:36 -0200
committerMichael Alexsander Silva Dias <michaelalexsander@protonmail.com>2017-12-15 22:46:36 -0200
commite73486aed43abb001172bcfd47192bbc156c7783 (patch)
tree0e047111f0498def3984a67a8965a2e63811c15e /editor/property_editor.cpp
parentf25d9a54cec74cca69b0dec72e0f0e34f328480d (diff)
Made multiline property editor deselect text when opening.
Diffstat (limited to 'editor/property_editor.cpp')
-rw-r--r--editor/property_editor.cpp1
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");