Переглянути джерело

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 роки тому
батько
коміт
8be126272f
1 змінених файлів з 3 додано та 0 видалено
  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) {
+		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);