Properly set input as handled when closing modal
This commit is contained in:
parent
59c23c1369
commit
90b9449844
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue