Browse Source

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

Fix missing check if shortcut event is handled for Control-nodes
Rémi Verschelde 2 years ago
parent
commit
8be126272f
1 changed files with 3 additions and 0 deletions
  1. 3 0
      scene/main/scene_tree.cpp

+ 3 - 0
scene/main/scene_tree.cpp

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