diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-02-16 20:00:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-16 20:00:24 +0100 |
commit | bf53132217d673e62fd645fbd0dae8639843fed2 (patch) | |
tree | e25b09129de3b55952290af2cb619542a16c23ae | |
parent | 0cee7ab4c9f326ffed1e25a9120573b7d63202ba (diff) | |
parent | 7a254b303b8004ea53b38bf689d765fa423bedb8 (diff) |
Merge pull request #25931 from qarmin/fix_copy_readonly
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; |