diff options
author | qarmin <mikrutrafal54@gmail.com> | 2019-02-16 07:56:24 +0100 |
---|---|---|
committer | qarmin <mikrutrafal54@gmail.com> | 2019-02-16 07:56:24 +0100 |
commit | 7a254b303b8004ea53b38bf689d765fa423bedb8 (patch) | |
tree | bfb613e1ed8688289ee4c3ccd548d143cf290b12 | |
parent | f5477ee36f2d34a5d6db0ee3e1516e9c12be28d5 (diff) |
Fix copy text when TextEdit is readonly
-rw-r--r-- | scene/gui/text_edit.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index 4abde6cc0f..d2c56dba06 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -2202,10 +2202,7 @@ void TextEdit::_gui_input(const Ref<InputEvent> &p_gui_input) { bool had_selection = selection.active; // stuff to do when selection is active.. - if (selection.active) { - - if (readonly) - return; + if (!readonly && selection.active) { bool clear = false; bool unselect = false; |