]> _ Git - fluidbook-toolbox-quiz.git/commitdiff
wait #6927
authorsoufiane <soufiane@cubedesigners.com>
Thu, 23 May 2024 08:46:04 +0000 (10:46 +0200)
committersoufiane <soufiane@cubedesigners.com>
Thu, 23 May 2024 08:46:04 +0000 (10:46 +0200)
js/quiz.accessibility.js
js/quiz.screens.js

index b39ef6820035541ef8912217ca05f649c97c4180..11c32009a0f9c6b546dd36249f0d5156ad6646f6 100644 (file)
@@ -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; });
index fe938f812570a772d9f920c8870918eac413b03e..3e9481d0b782219eabd440580d90156d1ea336e0 100644 (file)
@@ -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++)
             })