Browse Source

fix: update shortcut input to support CMD key for snapping

Kamil Tokarski 3 tuần trước cách đây
mục cha
commit
167cf79024
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      editor/scene/3d/node_3d_editor_plugin.cpp

+ 1 - 1
editor/scene/3d/node_3d_editor_plugin.cpp

@@ -8385,7 +8385,7 @@ void Node3DEditor::shortcut_input(const Ref<InputEvent> &p_event) {
 		return;
 	}
 
-	snap_key_enabled = Input::get_singleton()->is_key_pressed(Key::CTRL);
+	snap_key_enabled = Input::get_singleton()->is_key_pressed(Key::CMD_OR_CTRL);
 }
 
 void Node3DEditor::_sun_environ_settings_pressed() {