Ensure all checks of is_action in the editor which are for 'shortcut' use, check the action exactly.
This commit is contained in:
parent
f74491fdee
commit
2eda77c682
10 changed files with 46 additions and 46 deletions
|
|
@ -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++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue