Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-43309

Course combo box is not keyboard accessible

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.5.3, 2.6
    • Fix Version/s: FRONTEND
    • Component/s: Course
    • Labels:
    • Affected Branches:
      MOODLE_25_STABLE, MOODLE_26_STABLE

      Description

      While working on MDL-40750, I noticed that using the keyboard to jump into courses inside a Combo box was not always working.

      To replicate (on MacOS):

      1. Have a category with at least a course inside
      2. Add a combo box on the front page
      3. Set maxcategorydepth to 1
      4. Visit the front page and press "Tab"
      5. Using the keyboard (or the mouse) expand one of the category
      6. Try tabbing into the category content

      Actual

      • You cannot tab in the category content

      Expected

      • You can tab in the category and access the courses

      This needs to be fixed for sub categories too

      Checking at the code, it seems that it is on the first press of Tab that we add the tabindex, but if the categories are not yet expanded then tabindex will not be added. Why aren't we adding those tabindex in PHP if they are so important?

      (This will affect 2.5 once MDL-40750 is integrated)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                fred Frédéric Massart
                Participants:
                Component watchers:
                Amaia Anabitarte, Bas Brands, Carlos Escobedo, Sara Arjona (@sarjona), Víctor Déniz Falcón
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: