From 57ff04278bcd2fdb97179491cde84068cb906b90 Mon Sep 17 00:00:00 2001 From: Markus Sauermann <6299227+Sauermann@users.noreply.github.com> Date: Wed, 14 Dec 2022 22:20:23 +0100 Subject: Fix missing check if shortcut event is handled for Control-nodes Control-nodes without a shortcut-context were missing a check if the event was handled, so that a single shortcut-event was passed to multiple Control-nodes. --- scene/main/scene_tree.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scene/main/scene_tree.cpp b/scene/main/scene_tree.cpp index ceb5b76ff2..933d6fb7ad 100644 --- a/scene/main/scene_tree.cpp +++ b/scene/main/scene_tree.cpp @@ -942,6 +942,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(ObjectDB::get_instance(id)); if (n) { n->_call_shortcut_input(p_input); -- cgit v1.2.3