Skip to content

Commit 771eb7d

Browse files
author
Stanislav Idolov
authored
ENGCOM-3039: Allow keyboard navigation in browser on product detail pages, by fixi… #18212
2 parents 0d322a5 + 9880d7a commit 771eb7d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/web/fotorama/fotorama.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1951,10 +1951,10 @@ fotoramaVersion = '4.6.4';
19511951
if (e.keyCode === 27) {
19521952
catched = true;
19531953
that.cancelFullScreen();
1954-
} else if ((e.shiftKey && e.keyCode === 32 && allowKey('space')) || (e.keyCode === 37 && allowKey('left')) || (e.keyCode === 38 && allowKey('up') && $(':focus').attr('data-gallery-role'))) {
1954+
} else if ((e.shiftKey && e.keyCode === 32 && allowKey('space')) || (!e.altKey && !e.metaKey && e.keyCode === 37 && allowKey('left')) || (e.keyCode === 38 && allowKey('up') && $(':focus').attr('data-gallery-role'))) {
19551955
that.longPress.progress();
19561956
index = '<';
1957-
} else if ((e.keyCode === 32 && allowKey('space')) || (e.keyCode === 39 && allowKey('right')) || (e.keyCode === 40 && allowKey('down') && $(':focus').attr('data-gallery-role'))) {
1957+
} else if ((e.keyCode === 32 && allowKey('space')) || (!e.altKey && !e.metaKey && e.keyCode === 39 && allowKey('right')) || (e.keyCode === 40 && allowKey('down') && $(':focus').attr('data-gallery-role'))) {
19581958
that.longPress.progress();
19591959
index = '>';
19601960
} else if (e.keyCode === 36 && allowKey('home')) {
@@ -3553,7 +3553,7 @@ fotoramaVersion = '4.6.4';
35533553

35543554
if ((result.moved || (toggleControlsFLAG && result.pos !== result.newPos && !result.control)) && result.$target[0] !== $fullscreenIcon[0]) {
35553555
var index = getIndexByPos(result.newPos, measures.w, opts.margin, repositionIndex);
3556-
3556+
35573557
that.show({
35583558
index: index,
35593559
time: o_fade ? o_transitionDuration : result.time,

lib/web/fotorama/fotorama.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)