From: soufiane Date: Thu, 23 May 2024 08:46:04 +0000 (+0200) Subject: wait #6927 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=bff4b3194b153ef7aa83cc1832632bda9792d4d4;p=fluidbook-toolbox-quiz.git wait #6927 --- diff --git a/js/quiz.accessibility.js b/js/quiz.accessibility.js index b39ef68..11c3200 100644 --- a/js/quiz.accessibility.js +++ b/js/quiz.accessibility.js @@ -24,7 +24,8 @@ QuizAccessibility.prototype = { if (key === 'ENTER') { let el = $(':focus').find('[aria-keyshortcuts]') if($this.quiz.screens.getActiveScreen().find('[for="toggleDropdown"]').length > 0) { - $('[for="toggleDropdown"]:focus').get(0).click(); + console.log($this.quiz.screens.getActiveScreen().find('[for="toggleDropdown"]')) + //$('[for="toggleDropdown"]:focus').get(0).click(); } if ($this.quiz.utils.isEnabled(el)) { el.get(0).click((e) => { return false; }); diff --git a/js/quiz.screens.js b/js/quiz.screens.js index fe938f8..3e9481d 100644 --- a/js/quiz.screens.js +++ b/js/quiz.screens.js @@ -93,8 +93,8 @@ QuizScreens.prototype = { } }); - $(".list-item").removeAttr("tabindex") if(this.getActiveScreenType() === "multiple") { + $(".list-item").removeAttr("tabindex") $(".active-screen .list-item").each(function(index) { $(this).attr('tabindex', index++) })