diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-12-16 10:49:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-16 10:49:21 +0100 |
commit | 9b334389a22c1f17afd2adac047f6be92d781c35 (patch) | |
tree | 1ac4118767597275cd95bdd6f5800f88009633f1 | |
parent | a5db25bd27351564f391c5f0516dff64ea61544b (diff) | |
parent | e73486aed43abb001172bcfd47192bbc156c7783 (diff) |
Merge pull request #14702 from YeldhamDev/property_multiline
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"); |