From 96139b33be9db3c2a6ba7246efc735c229d7878e Mon Sep 17 00:00:00 2001 From: soufiane Date: Wed, 22 May 2024 11:00:54 +0200 Subject: [PATCH] wip #6927 --- js/quiz.accessibility.js | 4 ++++ js/quiz.js | 1 + 2 files changed, 5 insertions(+) diff --git a/js/quiz.accessibility.js b/js/quiz.accessibility.js index 4d36fcd..ad086dd 100644 --- a/js/quiz.accessibility.js +++ b/js/quiz.accessibility.js @@ -46,6 +46,10 @@ QuizAccessibility.prototype = { }, setTabindex: function(tabindex) { + if(!tabindex) { + this.quiz.screens.getActiveScreen().find(".screen a").removeAttr("tabindex") + return false; + } this.quiz.screens.getActiveScreen().find(".screen a").attr('tabindex',tabindex) } } diff --git a/js/quiz.js b/js/quiz.js index e90923d..d858ff4 100644 --- a/js/quiz.js +++ b/js/quiz.js @@ -146,6 +146,7 @@ Quiz.prototype = { this.screens.intro.show(); this.progressbar.update(); this.updateIcons(); + this.accessibility.setTabindex(false) } } -- 2.39.5