]> _ Git - fluidbook-toolbox-quiz.git/commitdiff
wip #6927
authorsoufiane <soufiane@cubedesigners.com>
Tue, 21 May 2024 16:34:05 +0000 (18:34 +0200)
committersoufiane <soufiane@cubedesigners.com>
Tue, 21 May 2024 16:34:05 +0000 (18:34 +0200)
js/quiz.accessibility.js
js/quiz.screens.js

index a5b3510ec24c3ecfe19e848998c17fbcd6097ea9..85c4fa1f65176f37781909f0d4d51a0156bedea8 100644 (file)
@@ -43,6 +43,10 @@ QuizAccessibility.prototype = {
         if(!status) {
             $el.hide()
         }
+    },
+
+    setTabindex: function(tabindex) {
+        this.activeScreen.find(".screen a").attr('tabindex',tabindex)
     }
 }
 
index 926cc67d678fb677abeb4a81985dda71fc1ae3d5..6a81e0115159d58e662033dcd5e0c8a3802eb927 100644 (file)
@@ -77,12 +77,13 @@ QuizScreens.prototype = {
                 let review = $this.sendUserAnswers();
                 // Si la revue instantanée est activée, on affiche les résultats
                 if ($this.quiz.data.instantReview && !['country', 'email', 'text'].includes($this.getActiveScreenType())) {
-                    $this.activeScreen.find(".screen a").attr('tabindex','-1')
                     $this.instantReview(review);
                 } else {
                     // Sinon, on passe directement à la question suivante
                     $this.nextQuestion();
                 }
+                $this.quiz.accessibility.setTabindex(-1)
+                $this.activeScreen.find(".screen a").attr('tabindex','-1')
             } else {
                 // Bouton continuer, on était dans la revue instantanée, on passe à la question suivante
                 $this.quiz.animations.stopInstantReviewAnimation();