From: soufiane Date: Thu, 23 May 2024 09:34:12 +0000 (+0200) Subject: wait #6927 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=d48177e1fcf9ac9a220ebc4ef1f9ccf8488d3638;p=fluidbook-toolbox-quiz.git wait #6927 --- diff --git a/js/quiz.accessibility.js b/js/quiz.accessibility.js index 11c3200..0c76aa6 100644 --- a/js/quiz.accessibility.js +++ b/js/quiz.accessibility.js @@ -23,9 +23,8 @@ QuizAccessibility.prototype = { if (key === 'ENTER') { let el = $(':focus').find('[aria-keyshortcuts]') - if($this.quiz.screens.getActiveScreen().find('[for="toggleDropdown"]').length > 0) { - console.log($this.quiz.screens.getActiveScreen().find('[for="toggleDropdown"]')) - //$('[for="toggleDropdown"]:focus').get(0).click(); + if($('.active-screen [for="toggleDropdown"]').length > 0) { + $('[for="toggleDropdown"]:focus').get(0).click(); } if ($this.quiz.utils.isEnabled(el)) { el.get(0).click((e) => { return false; });