1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-14 13:41:12 +00:00

Fix FOCUS_ACCESSIBILITY grabbing focus when it is not supposed to, forward GraphNode key input to GraphEdit.

This commit is contained in:
Pāvels Nadtočajevs
2025-04-20 20:30:34 +03:00
parent e37c6261ea
commit db0c0a9182
6 changed files with 21 additions and 4 deletions

View File

@@ -173,6 +173,11 @@ void GraphElement::gui_input(const Ref<InputEvent> &p_ev) {
emit_signal(SNAME("resize_request"), resizing_from_size + diff);
}
GraphEdit *graph = Object::cast_to<GraphEdit>(get_parent());
if (graph && has_focus()) {
graph->key_input(p_ev);
}
}
void GraphElement::set_resizable(bool p_enable) {