diff options
author | Markus Sauermann <6299227+Sauermann@users.noreply.github.com> | 2022-12-14 22:20:23 +0100 |
---|---|---|
committer | Markus Sauermann <6299227+Sauermann@users.noreply.github.com> | 2022-12-14 22:22:24 +0100 |
commit | 57ff04278bcd2fdb97179491cde84068cb906b90 (patch) | |
tree | 309b2ac3d5dc3f86d1d254482c87f71aff69e415 /scene/main | |
parent | 6318320c04f348eee1df7a5dae3bad540ef1fdcc (diff) |
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.
Diffstat (limited to 'scene/main')
-rw-r--r-- | scene/main/scene_tree.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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<Node>(ObjectDB::get_instance(id)); if (n) { n->_call_shortcut_input(p_input); |