Skip to content

Commit 3b6ecc0

Browse files
committed
CraterCrashGH-368 Use Shift+LMB to place knots, Ctrl+LMB to remove
1 parent 3f2f461 commit 3b6ecc0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/editor/graph/graph_edit.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ void OrchestratorGraphEdit::_gui_input(const Ref<InputEvent>& p_event)
509509
_hovered_connection = get_closest_connection_at_point(mm->get_position());
510510
if (!_hovered_connection.is_empty())
511511
{
512-
_show_drag_hint("Use Ctrl+LMB to add a knot to the connection.\n"
512+
_show_drag_hint("Use Shift+LMB to add a knot to the connection.\n"
513513
"Hover over an existing knot and pressing Ctrl+LMB will remove it.");
514514
}
515515
}
@@ -519,9 +519,9 @@ void OrchestratorGraphEdit::_gui_input(const Ref<InputEvent>& p_event)
519519
{
520520
if (mb->get_button_index() == MOUSE_BUTTON_LEFT && mb->is_pressed())
521521
{
522-
if (mb->get_modifiers_mask().has_flag(KEY_MASK_CTRL))
522+
if (mb->get_modifiers_mask().has_flag(KEY_MASK_SHIFT))
523523
{
524-
// CTRL+LMB adds a knot to the connection that can then be moved.
524+
// SHIFT+LMB adds a knot to the connection that can then be moved.
525525
if (!_hovered_connection.is_empty())
526526
_create_connection_knot(_hovered_connection, mb->get_position());
527527
}

0 commit comments

Comments
 (0)