From: soufiane Date: Tue, 21 May 2024 13:43:49 +0000 (+0200) Subject: wip #6927 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=76cec1e115021512ad231850c04f5c8129acb3b6;p=fluidbook-toolbox-quiz.git wip #6927 --- 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; } } });