From: soufiane Date: Wed, 22 May 2024 14:06:09 +0000 (+0200) Subject: wip #6927 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=c5a3eab7d0722df6adfbd115f51c703df7f7ea58;p=fluidbook-toolbox-quiz.git wip #6927 --- diff --git a/js/quiz.accessibility.js b/js/quiz.accessibility.js index bb4aa4a..437e207 100644 --- a/js/quiz.accessibility.js +++ b/js/quiz.accessibility.js @@ -23,11 +23,10 @@ QuizAccessibility.prototype = { if (key === 'ENTER') { let el = $(':focus').find('[aria-keyshortcuts]') - if(el.length > 0) { + if(el.length < 1) { console.log('ok') $(':focus').get(0).click(); } - $(':focus').get(0).click(); if ($this.quiz.utils.isEnabled(el)) { el.get(0).click((e) => { return false; }); return true;