mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Issue #383 : Use metaKey as ctrlKey for Move tool on OSX
This commit is contained in:
parent
01a0cb14fd
commit
cd8d5c0b52
@ -75,7 +75,8 @@
|
|||||||
var colDiff = col - this.startCol;
|
var colDiff = col - this.startCol;
|
||||||
var rowDiff = row - this.startRow;
|
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
|
// for the current frame, the backup clone should be reused as reference
|
||||||
// the current frame has been modified by the user action already
|
// the current frame has been modified by the user action already
|
||||||
var reference = this.currentFrame == f ? this.currentFrameClone : f.clone();
|
var reference = this.currentFrame == f ? this.currentFrameClone : f.clone();
|
||||||
@ -85,7 +86,7 @@
|
|||||||
this.raiseSaveStateEvent({
|
this.raiseSaveStateEvent({
|
||||||
colDiff : colDiff,
|
colDiff : colDiff,
|
||||||
rowDiff : rowDiff,
|
rowDiff : rowDiff,
|
||||||
ctrlKey : event.ctrlKey,
|
ctrlKey : ctrlKey,
|
||||||
altKey : event.altKey,
|
altKey : event.altKey,
|
||||||
shiftKey : event.shiftKey
|
shiftKey : event.shiftKey
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user