1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-12 13:20:55 +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

@@ -2263,6 +2263,10 @@ void GraphEdit::gui_input(const Ref<InputEvent> &p_ev) {
}
}
key_input(p_ev);
}
void GraphEdit::key_input(const Ref<InputEvent> &p_ev) {
if (p_ev->is_pressed()) {
if (p_ev->is_action("ui_graph_duplicate", true)) {
emit_signal(SNAME("duplicate_nodes_request"));