|
|
@ -610,6 +610,16 @@ namespace Fungus.EditorUtils |
|
|
|
{ |
|
|
|
{ |
|
|
|
var hitBlock = GetBlockAtPoint(e.mousePosition); |
|
|
|
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) |
|
|
|
switch(e.button) |
|
|
|
{ |
|
|
|
{ |
|
|
|
case MouseButton.Left: |
|
|
|
case MouseButton.Left: |
|
|
@ -760,6 +770,16 @@ namespace Fungus.EditorUtils |
|
|
|
{ |
|
|
|
{ |
|
|
|
var hitBlock = GetBlockAtPoint(e.mousePosition); |
|
|
|
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) |
|
|
|
switch (e.button) |
|
|
|
{ |
|
|
|
{ |
|
|
|
case MouseButton.Left: |
|
|
|
case MouseButton.Left: |
|
|
|