From 8c31c47831ca8955231baf95548e8b5644cd4ec1 Mon Sep 17 00:00:00 2001 From: soufiane Date: Tue, 21 May 2024 15:34:03 +0200 Subject: [PATCH] wip #6927 --- js/quiz.accessibility.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/js/quiz.accessibility.js b/js/quiz.accessibility.js index 592acdb..1e06a2e 100644 --- a/js/quiz.accessibility.js +++ b/js/quiz.accessibility.js @@ -25,13 +25,9 @@ QuizAccessibility.prototype = { if (key === 'ENTER') { console.log("enter 2") - $(":focus").click(function(e) { - console.log('ok') - e.preventDefault() - if ($this.quiz.utils.isEnabled($(this))) { - $('[aria-keyshortcuts="' + key + '"]:focus').click(); - } - }) + if ($this.quiz.utils.isEnabled($(this))) { + $('[aria-keyshortcuts="' + key + '"]:focus').click(); + } return true; } } -- 2.39.5