From 93a8684f8dcf21efa7fc853b1f05914d6eacb2cd Mon Sep 17 00:00:00 2001 From: soufiane Date: Wed, 22 May 2024 16:03:59 +0200 Subject: [PATCH] wip #6927 --- js/quiz.accessibility.js | 3 ++- js/quiz.screens.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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(); }); -- 2.39.5