浏览代码

Fixed not deselecting when clearing lineedit.

Paulb23 6 年之前
父节点
当前提交
bfba1e36bc
共有 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;