mirror of
https://github.com/godotengine/godot.git
synced 2025-03-07 23:32:58 +08:00
Fix copy text when TextEdit is readonly
This commit is contained in:
parent
f5477ee36f
commit
7a254b303b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user