From: soufiane Date: Wed, 22 May 2024 14:03:59 +0000 (+0200) Subject: wip #6927 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=93a8684f8dcf21efa7fc853b1f05914d6eacb2cd;p=fluidbook-toolbox-quiz.git wip #6927 --- diff --git a/js/quiz.accessibility.js b/js/quiz.accessibility.js index a6f1341..bb4aa4a 100644 --- a/js/quiz.accessibility.js +++ b/js/quiz.accessibility.js @@ -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(); diff --git a/js/quiz.screens.js b/js/quiz.screens.js index 5701591..fcf7c39 100644 --- a/js/quiz.screens.js +++ b/js/quiz.screens.js @@ -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(); });