From 76cec1e115021512ad231850c04f5c8129acb3b6 Mon Sep 17 00:00:00 2001 From: soufiane Date: Tue, 21 May 2024 15:43:49 +0200 Subject: [PATCH] wip #6927 --- js/quiz.accessibility.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/js/quiz.accessibility.js b/js/quiz.accessibility.js index 6ca5b7c..8d14001 100644 --- a/js/quiz.accessibility.js +++ b/js/quiz.accessibility.js @@ -25,10 +25,11 @@ QuizAccessibility.prototype = { if (key === 'ENTER') { console.log("enter 2") - if ($this.quiz.utils.isEnabled($(this))) { - $(':focus').find('[aria-keyshortcuts="' + key + '"]').click(); + let el = $(':focus').find('[aria-keyshortcuts="' + key + '"]') + if ($this.quiz.utils.isEnabled(el)) { + el.click(); + return true; } - return true; } } }); -- 2.39.5