From e73486aed43abb001172bcfd47192bbc156c7783 Mon Sep 17 00:00:00 2001 From: Michael Alexsander Silva Dias Date: Fri, 15 Dec 2017 22:46:36 -0200 Subject: Made multiline property editor deselect text when opening. --- editor/property_editor.cpp | 1 + 1 file changed, 1 insertion(+) 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"); -- cgit v1.2.3