Explorar el Código

Merge pull request #82914 from KoBeWi/acceptation

Accept cancel event when unfocusing LineEdit
Rémi Verschelde hace 1 año
padre
commit
6916349697
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      scene/gui/line_edit.cpp

+ 1 - 0
scene/gui/line_edit.cpp

@@ -486,6 +486,7 @@ void LineEdit::gui_input(const Ref<InputEvent> &p_event) {
 
 
 		if (k->is_action("ui_cancel")) {
 		if (k->is_action("ui_cancel")) {
 			callable_mp((Control *)this, &Control::release_focus).call_deferred();
 			callable_mp((Control *)this, &Control::release_focus).call_deferred();
+			accept_event();
 			return;
 			return;
 		}
 		}