summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2017-12-16 10:49:21 +0100
committerGitHub <noreply@github.com>2017-12-16 10:49:21 +0100
commit9b334389a22c1f17afd2adac047f6be92d781c35 (patch)
tree1ac4118767597275cd95bdd6f5800f88009633f1
parenta5db25bd27351564f391c5f0516dff64ea61544b (diff)
parente73486aed43abb001172bcfd47192bbc156c7783 (diff)
Merge pull request #14702 from YeldhamDev/property_multiline
Made multiline property editor deselect text when opening
-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");