diff --git a/app/static/js/jury_but.js b/app/static/js/jury_but.js index 945e93333..11be4de7a 100644 --- a/app/static/js/jury_but.js +++ b/app/static/js/jury_but.js @@ -85,6 +85,19 @@ $(function () { document.querySelector("div.prev").innerHTML = ""; document.querySelector("div.next").innerHTML = ""; } + $(document).keydown(function(event) { + if (event.key === "ArrowRight") { + let nextLink = $(".next a").attr("href"); + if (nextLink) { + window.location.href = nextLink; + } + } else if (event.key === "ArrowLeft") { + let prevLink = $(".prev a").attr("href"); + if (prevLink) { + window.location.href = prevLink; + } + } + }); }); // ----- Etat du formulaire jury pour éviter sortie sans enregistrer