diff --git a/lib/web/magnifier/magnify.js b/lib/web/magnifier/magnify.js index 5833c065f6560..8e17372253e4f 100644 --- a/lib/web/magnifier/magnify.js +++ b/lib/web/magnifier/magnify.js @@ -810,7 +810,7 @@ define([ /** * @todo keyboard navigation through Fotorama Api. */ - $(document).keydown(keyboardNavigation); + $(document).on('keydown', keyboardNavigation); $(document).on(isTouchEnabled ? 'touchend' : 'mouseup pointerup MSPointerUp', function (e) { if (gallery.fullScreen) { @@ -924,14 +924,14 @@ define([ e.stopPropagation(); }); - $zoomIn.keyup(function (e) { + $zoomIn.on('keyup', function (e) { if (e.keyCode === 13) { zoomIn(e); } }); - $(window).keyup(function (e) { + $(window).on('keyup', function (e) { if (e.keyCode === 107 || fotorama.fullscreen) { zoomIn(e); @@ -947,14 +947,14 @@ define([ e.stopPropagation(); }); - $zoomOut.keyup(function (e) { + $zoomOut.on('keyup', function (e) { if (e.keyCode === 13) { zoomOut(e); } }); - $(window).keyup(function (e) { + $(window).on('keyup', function (e) { if (e.keyCode === 109 || fotorama.fullscreen) { zoomOut(e);