فهرست منبع

Merge pull request #27557 from Paulb23/deselect_line_edit_clear

Fixed not deselecting when clearing lineedit.
Rémi Verschelde 6 سال پیش
والد
کامیت
9b691718f5
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      scene/gui/line_edit.cpp

+ 1 - 0
scene/gui/line_edit.cpp

@@ -1223,6 +1223,7 @@ void LineEdit::append_at_cursor(String p_text) {
 
 void LineEdit::clear_internal() {
 
+	deselect();
 	_clear_undo_stack();
 	cached_width = 0;
 	cursor_pos = 0;