You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Replace Ctrl in editor shortcuts with Cmd or Ctrl depending on platform
This commit is contained in:
@@ -158,7 +158,7 @@ void AnimationNodeStateMachineEditor::_state_machine_gui_input(const Ref<InputEv
|
||||
}
|
||||
|
||||
// Select node or push a field inside
|
||||
if (mb.is_valid() && !mb->is_shift_pressed() && !mb->is_ctrl_pressed() && mb->is_pressed() && tool_select->is_pressed() && mb->get_button_index() == MouseButton::LEFT) {
|
||||
if (mb.is_valid() && !mb->is_shift_pressed() && !mb->is_command_or_control_pressed() && mb->is_pressed() && tool_select->is_pressed() && mb->get_button_index() == MouseButton::LEFT) {
|
||||
selected_transition_from = StringName();
|
||||
selected_transition_to = StringName();
|
||||
selected_transition_index = -1;
|
||||
@@ -337,7 +337,7 @@ void AnimationNodeStateMachineEditor::_state_machine_gui_input(const Ref<InputEv
|
||||
ABS(box_selecting_from.x - box_selecting_to.x),
|
||||
ABS(box_selecting_from.y - box_selecting_to.y));
|
||||
|
||||
if (mb->is_ctrl_pressed() || mb->is_shift_pressed()) {
|
||||
if (mb->is_command_or_control_pressed() || mb->is_shift_pressed()) {
|
||||
previous_selected = selected_nodes;
|
||||
} else {
|
||||
selected_nodes.clear();
|
||||
|
||||
Reference in New Issue
Block a user