Fix copy text when TextEdit is readonly

This commit is contained in:
qarmin 2019-02-16 07:56:24 +01:00
parent f5477ee36f
commit 7a254b303b

View file

@ -2202,10 +2202,7 @@ void TextEdit::_gui_input(const Ref<InputEvent> &p_gui_input) {
bool had_selection = selection.active; bool had_selection = selection.active;
// stuff to do when selection is active.. // stuff to do when selection is active..
if (selection.active) { if (!readonly && selection.active) {
if (readonly)
return;
bool clear = false; bool clear = false;
bool unselect = false; bool unselect = false;