فهرست منبع

Fix copy text when TextEdit is readonly

qarmin 6 سال پیش
والد
کامیت
7a254b303b
1فایلهای تغییر یافته به همراه1 افزوده شده و 4 حذف شده
  1. 1 4
      scene/gui/text_edit.cpp

+ 1 - 4
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;