Replace Ctrl in editor shortcuts with Cmd or Ctrl depending on platform
This commit is contained in:
parent
571cd0eb79
commit
6afadbaa9f
25 changed files with 54 additions and 50 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue