diff options
author | Eric M <itsjusteza@gmail.com> | 2022-09-24 18:01:02 +1000 |
---|---|---|
committer | Eric M <itsjusteza@gmail.com> | 2022-09-24 18:01:02 +1000 |
commit | 2eda77c682639dc9e3f057655aa4553eddf46b89 (patch) | |
tree | a49215ba3d205c2267ad2a5f73aa89507469d3b3 /scene/gui/graph_edit.cpp | |
parent | f74491fdee9bc2d68668137fbacd8f3a7e7e8df7 (diff) | |
download | redot-engine-2eda77c682639dc9e3f057655aa4553eddf46b89.tar.gz |
Ensure all checks of `is_action` in the editor which are for 'shortcut' use, check the action exactly.
Diffstat (limited to 'scene/gui/graph_edit.cpp')
-rw-r--r-- | scene/gui/graph_edit.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scene/gui/graph_edit.cpp b/scene/gui/graph_edit.cpp index 7295ab9e9d..4eae8a61c6 100644 --- a/scene/gui/graph_edit.cpp +++ b/scene/gui/graph_edit.cpp @@ -1385,16 +1385,16 @@ void GraphEdit::gui_input(const Ref<InputEvent> &p_ev) { } if (p_ev->is_pressed()) { - if (p_ev->is_action("ui_graph_duplicate")) { + if (p_ev->is_action("ui_graph_duplicate", true)) { emit_signal(SNAME("duplicate_nodes_request")); accept_event(); - } else if (p_ev->is_action("ui_copy")) { + } else if (p_ev->is_action("ui_copy", true)) { emit_signal(SNAME("copy_nodes_request")); accept_event(); - } else if (p_ev->is_action("ui_paste")) { + } else if (p_ev->is_action("ui_paste", true)) { emit_signal(SNAME("paste_nodes_request")); accept_event(); - } else if (p_ev->is_action("ui_graph_delete")) { + } else if (p_ev->is_action("ui_graph_delete", true)) { TypedArray<StringName> nodes; for (int i = 0; i < get_child_count(); i++) { |