From cd8d5c0b52569a4c8c422349e06e452ac343499a Mon Sep 17 00:00:00 2001 From: jdescottes Date: Sat, 16 Jan 2016 12:31:03 +0100 Subject: [PATCH] Issue #383 : Use metaKey as ctrlKey for Move tool on OSX --- src/js/tools/drawing/Move.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/js/tools/drawing/Move.js b/src/js/tools/drawing/Move.js index fc4fae03..a88a540a 100644 --- a/src/js/tools/drawing/Move.js +++ b/src/js/tools/drawing/Move.js @@ -75,7 +75,8 @@ var colDiff = col - this.startCol; var rowDiff = row - this.startRow; - pskl.tools.ToolsHelper.getTargetFrames(event.ctrlKey, event.shiftKey).forEach(function (f) { + var ctrlKey = pskl.utils.UserAgent.isMac ? event.metaKey : event.ctrlKey; + pskl.tools.ToolsHelper.getTargetFrames(ctrlKey, event.shiftKey).forEach(function (f) { // for the current frame, the backup clone should be reused as reference // the current frame has been modified by the user action already var reference = this.currentFrame == f ? this.currentFrameClone : f.clone(); @@ -85,7 +86,7 @@ this.raiseSaveStateEvent({ colDiff : colDiff, rowDiff : rowDiff, - ctrlKey : event.ctrlKey, + ctrlKey : ctrlKey, altKey : event.altKey, shiftKey : event.shiftKey });