diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index dd5d55253..f5b977c66 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -4,6 +4,7 @@ - Fixed crash on async painting with no default Tileset - Fixed a crash with empty identifiers - Fixed a potential infinite loop with empty identifiers +- On macOS, CTRL+Left click should now behave like Right Clicking for editing tools and open context menus # 1.5.2 diff --git a/src/electron.renderer/Tool.hx b/src/electron.renderer/Tool.hx index 346f8a74e..5758517c7 100644 --- a/src/electron.renderer/Tool.hx +++ b/src/electron.renderer/Tool.hx @@ -98,6 +98,8 @@ class Tool extends dn.Process { switch button { case 0: curMode = Add; + if( App.ME.isMacCtrlDown() ) + curMode = Remove; case 1: curMode = Remove; diff --git a/src/electron.renderer/ui/modal/ContextMenu.hx b/src/electron.renderer/ui/modal/ContextMenu.hx index b946ef152..fc87028cd 100644 --- a/src/electron.renderer/ui/modal/ContextMenu.hx +++ b/src/electron.renderer/ui/modal/ContextMenu.hx @@ -131,6 +131,16 @@ class ContextMenu extends ui.Modal { ev.preventDefault(); _open(ev); }); + + // Emulated right click on macOS + if( App.isMac() ) + jTarget.on("mousedown.context", (ev:js.jquery.Event)->{ + if( ev.button==0 && App.ME.isMacCtrlDown() ) { + ev.stopPropagation(); + ev.preventDefault(); + _open(ev); + } + }); }