Merge pull request #70075 from Sauermann/fix-missing-shortcut-handled-check

Fix missing check if shortcut event is handled for Control-nodes
This commit is contained in:
Rémi Verschelde 2022-12-16 13:47:39 +01:00
commit 8be126272f
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -948,6 +948,9 @@ void SceneTree::_call_input_pause(const StringName &p_group, CallInputType p_cal
}
for (const ObjectID &id : no_context_node_ids) {
if (p_viewport->is_input_handled()) {
break;
}
Node *n = Object::cast_to<Node>(ObjectDB::get_instance(id));
if (n) {
n->_call_shortcut_input(p_input);