浏览代码

Fix LineEdit not capturing text input events

Ignacio Etcheverry 9 年之前
父节点
当前提交
ccbf8b42f4
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      scene/gui/line_edit.cpp

+ 2 - 0
scene/gui/line_edit.cpp

@@ -330,6 +330,8 @@ void LineEdit::_input_event(InputEvent p_event) {
 							append_at_cursor(ucodestr);
 							append_at_cursor(ucodestr);
 							emit_signal("text_changed",text);
 							emit_signal("text_changed",text);
 							_change_notify("text");
 							_change_notify("text");
+
+							accept_event();
 						}
 						}
 
 
 					} else {
 					} else {