From c5a3eab7d0722df6adfbd115f51c703df7f7ea58 Mon Sep 17 00:00:00 2001 From: soufiane Date: Wed, 22 May 2024 16:06:09 +0200 Subject: [PATCH] wip #6927 --- js/quiz.accessibility.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; -- 2.39.5