Skip to content

Commit

Permalink
fix (accessibility) : LIGHTBOX arrows nav (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
codexarama committed Jun 11, 2021
1 parent 8b915c5 commit 38b10b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/lightbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ const displayLightbox = () => {

// ACCESSIBILITE
// navigation entre les medias avec fleches
lightbox.addEventListener('keydown', (event) => {
window.addEventListener('keydown', (event) => {
if (event.keyCode === 37) prev.click();
});
};
Expand All @@ -166,7 +166,7 @@ const displayLightbox = () => {

// ACCESSIBILITE
// navigation entre les medias avec fleches
lightbox.addEventListener('keydown', (event) => {
window.addEventListener('keydown', (event) => {
if (event.keyCode === 39) next.click();
});
};
Expand Down

0 comments on commit 38b10b6

Please sign in to comment.