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

index aa383f74eade2bf753294690008e5fbb23754caa..e2c9bf62358d44e8753d0e094f66b7da823cd2a0 100644 (file)
@@ -23,9 +23,8 @@ QuizAccessibility.prototype = {
 
                 if (key === 'ENTER') {
                     let el = $(':focus').find('[aria-keyshortcuts]')
-                    if(el.length < 1) {
-                        console.log('ok')
-                        //$(':focus').get(0).click();
+                    if($('[for="toggleDropdown"]')) {
+                        $('[for="toggleDropdown"]:focus').get(0).click();
                     }
                     if ($this.quiz.utils.isEnabled(el)) {
                         el.get(0).click((e) => { return false; });