diff --git a/Assets/Fungus/Scripts/Editor/FlowchartWindow.cs b/Assets/Fungus/Scripts/Editor/FlowchartWindow.cs index 5281d60a..110ea949 100644 --- a/Assets/Fungus/Scripts/Editor/FlowchartWindow.cs +++ b/Assets/Fungus/Scripts/Editor/FlowchartWindow.cs @@ -610,6 +610,16 @@ namespace Fungus.EditorUtils { var hitBlock = GetBlockAtPoint(e.mousePosition); + // Convert Ctrl+Left click to a right click on mac + if (Application.platform == RuntimePlatform.OSXEditor) + { + if (e.button == MouseButton.Left && + e.control) + { + e.button = MouseButton.Right; + } + } + switch(e.button) { case MouseButton.Left: @@ -760,6 +770,16 @@ namespace Fungus.EditorUtils { var hitBlock = GetBlockAtPoint(e.mousePosition); + // Convert Ctrl+Left click to a right click on mac + if (Application.platform == RuntimePlatform.OSXEditor) + { + if (e.button == MouseButton.Left && + e.control) + { + e.button = MouseButton.Right; + } + } + switch (e.button) { case MouseButton.Left: