]> _ Git - fluidbook-toolbox-quiz.git/commitdiff
wip #6927
authorsoufiane <soufiane@cubedesigners.com>
Wed, 22 May 2024 14:03:59 +0000 (16:03 +0200)
committersoufiane <soufiane@cubedesigners.com>
Wed, 22 May 2024 14:03:59 +0000 (16:03 +0200)
js/quiz.accessibility.js
js/quiz.screens.js

index a6f134143f7ff9432f95a4472abd47da118cdd38..bb4aa4ac397617a27e02713c0ca0e5e6fc07ff1d 100644 (file)
@@ -23,7 +23,8 @@ QuizAccessibility.prototype = {
 
                 if (key === 'ENTER') {
                     let el = $(':focus').find('[aria-keyshortcuts]')
-                    if(!el) {
+                    if(el.length > 0) {
+                        console.log('ok')
                         $(':focus').get(0).click();
                     }
                     $(':focus').get(0).click();
index 570159103762ca0eaf9cc9790c0bf24258564f02..fcf7c39326e134eefe95fa74cba38e9a5532384a 100644 (file)
@@ -43,7 +43,8 @@ QuizScreens.prototype = {
         });
 
         //
-        $(document).on("click", ".btn.moreinfo, .close-explaination", function () {
+        $(document).on("click", ".btn.moreinfo, .close-explaination", function (e) {
+            e.preventDefault();
             $this.showExplaination();
         });