From 90b94498443f72e9c6b17f922a2eba8ce3f04d6b Mon Sep 17 00:00:00 2001 From: Fabio Alessandrelli Date: Sat, 6 Jan 2018 07:50:15 +0100 Subject: Properly set input as handled when closing modal --- scene/main/viewport.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scene/main') diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp index 1ff1f4b6d8..cb5a895574 100644 --- a/scene/main/viewport.cpp +++ b/scene/main/viewport.cpp @@ -2017,6 +2017,9 @@ void Viewport::_gui_input_event(Ref p_event) { top->notification(Control::NOTIFICATION_MODAL_CLOSE); top->_modal_stack_remove(); top->hide(); + // Close modal, set input as handled + get_tree()->set_input_as_handled(); + return; } } -- cgit v1.2.3