]> _ Git - fluidbook-toolbox-quiz.git/commitdiff
wip #6927
authorsoufiane <soufiane@cubedesigners.com>
Wed, 22 May 2024 13:27:07 +0000 (15:27 +0200)
committersoufiane <soufiane@cubedesigners.com>
Wed, 22 May 2024 13:27:07 +0000 (15:27 +0200)
js/quiz.accessibility.js
views/screens/question_country.blade.php

index ced76ecff0c3933eafa6f830ec68ee7c7554229f..3a420054e6c147a8bd6fffddd789b8b10c5db217 100644 (file)
@@ -23,6 +23,9 @@ QuizAccessibility.prototype = {
 
                 if (key === 'ENTER') {
                     let el = $(':focus').find('[aria-keyshortcuts]')
+                    if(!el) {
+                        $(':focus').get(0).click();
+                    }
                     if ($this.quiz.utils.isEnabled(el)) {
                         el.get(0).click((e) => { return false; });
                         return true;
index 207e5a172fcb247411dda5004bd97a714d4d94db..388550e3b2e3224970aae96ba9c47d40e607bbef 100644 (file)
@@ -5,8 +5,8 @@
     <div class="screen question-text question-country">
         <form id="form-{{$position}}">
             <div class="form-group">
-                <label for="toggleDropdown">
-                    <input class="answer-text" tabindex="1" id="toggleDropdown" name="answer"
+                <label for="toggleDropdown" tabindex="1">
+                    <input class="answer-text" id="toggleDropdown" name="answer"
                            placeholder="{{$question['placeholder']?:$__('Choose a country')}}" type="text"/>
                     <svg class="arrow" xmlns="http://www.w3.org/2000/svg" width="18.828" height="10.414"
                          viewBox="0 0 18.828 10.414">