Browse Source

Fixed Cmd+Left Click doesn't register as right click on OSX #595

master
Christopher 8 years ago
parent
commit
7dacaa70d9
  1. 20
      Assets/Fungus/Scripts/Editor/FlowchartWindow.cs

20
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:

Loading…
Cancel
Save