Skip to content

Commit 7dc2b6f

Browse files
committed
On Macs, all CTRL key usages now support Command key, as well
1 parent 472ab84 commit 7dc2b6f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Plugins/BezierSolution/Editor/BezierPointEditor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ private void OnSceneGUI()
263263
// When Control key is pressed, BezierPoint gizmos should be drawn on top of Transform handles in order to allow selecting/deselecting points
264264
// If Alt key is pressed, Transform handles aren't drawn at all, so BezierPoint gizmos can be drawn immediately
265265
// When in point insertion mode, handles aren't drawn and BezierPoint gizmos must be drawn immediately
266-
if( e.alt || !e.control || BezierUtils.QuickEditSplineMode )
266+
if( e.alt || ( !e.control && !e.command ) || BezierUtils.QuickEditSplineMode )
267267
BezierUtils.DrawBezierPoint( point, point.index + 1, true );
268268

269269
if( BezierSettings.ShowEvenlySpacedPoints )
@@ -568,7 +568,7 @@ private void OnSceneGUI()
568568
break;
569569
}
570570

571-
if( e.control )
571+
if( e.control || e.command )
572572
BezierUtils.DrawBezierPoint( point, point.index + 1, true );
573573
}
574574

Plugins/BezierSolution/Editor/BezierUtils.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ public static void DrawBezierPoint( BezierPoint point, int pointIndex, bool isSe
546546

547547
if( QuickEditSplineMode )
548548
{
549-
if( e.alt || e.control )
549+
if( e.alt || e.control || e.command )
550550
Handles.DotHandleCap( 0, point.position, Quaternion.identity, HandleUtility.GetHandleSize( point.position ) * size, EventType.Repaint );
551551
else if( !e.shift )
552552
{
@@ -596,11 +596,11 @@ public static void DrawBezierPoint( BezierPoint point, int pointIndex, bool isSe
596596
}
597597
}
598598
}
599-
else if( e.alt || e.button > 0 || ( isSelected && !e.control ) )
599+
else if( e.alt || e.button > 0 || ( isSelected && !e.control && !e.command ) )
600600
Handles.DotHandleCap( 0, point.position, Quaternion.identity, HandleUtility.GetHandleSize( point.position ) * size, EventType.Repaint );
601601
else if( Handles.Button( point.position, Quaternion.identity, HandleUtility.GetHandleSize( point.position ) * size, size, Handles.DotHandleCap ) )
602602
{
603-
if( !e.shift && !e.control )
603+
if( !e.shift && !e.control && !e.command )
604604
Selection.activeTransform = point.transform;
605605
else
606606
{
@@ -716,7 +716,7 @@ public static void QuickEditModeSceneGUI( BezierSpline[] splines )
716716
EditorGUI.DropShadowLabel( multiEditTipRect, QUICK_EDIT_MODE_TEXT, style );
717717
Handles.EndGUI();
718718

719-
if( splines.Length == 0 || e.alt || !e.control || GUIUtility.hotControl != 0 )
719+
if( splines.Length == 0 || e.alt || ( !e.control && !e.command ) || GUIUtility.hotControl != 0 )
720720
return;
721721

722722
if( !e.shift )

0 commit comments

Comments
 (0)