Skip to content

Commit

Permalink
Added enableKeyMovement option (#340)
Browse files Browse the repository at this point in the history
  • Loading branch information
JavierAroche authored and thedustinsmith committed Jul 14, 2017
1 parent 0d9a822 commit 996faeb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion croppie.js
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@
}
self.setZoom(zoom);
}
else if (ev.keyCode >= 37 && ev.keyCode <= 40) {
else if (self.options.enableKeyMovement && (ev.keyCode >= 37 && ev.keyCode <= 40)) {
ev.preventDefault();
var movement = parseKeyDown(ev.keyCode);

Expand Down Expand Up @@ -1358,6 +1358,7 @@
enableExif: false,
enforceBoundary: true,
enableOrientation: false,
enableKeyMovement: true,
update: function () { }
};

Expand Down

0 comments on commit 996faeb

Please sign in to comment.