Properly set input as handled when closing modal

This commit is contained in:
Fabio Alessandrelli 2018-01-06 07:50:15 +01:00
parent 59c23c1369
commit 90b9449844

View file

@ -2017,6 +2017,9 @@ void Viewport::_gui_input_event(Ref<InputEvent> 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;
}
}