]> _ Git - fluidbook-toolbox-quiz.git/commitdiff
wip #6927
authorsoufiane <soufiane@cubedesigners.com>
Wed, 22 May 2024 14:06:09 +0000 (16:06 +0200)
committersoufiane <soufiane@cubedesigners.com>
Wed, 22 May 2024 14:06:09 +0000 (16:06 +0200)
js/quiz.accessibility.js

index bb4aa4ac397617a27e02713c0ca0e5e6fc07ff1d..437e2071104a9ead46ea51faf3b2e718f6e5f7b4 100644 (file)
@@ -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;