Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-35951 Accessibility: Remove onkeypress handlers from links and form controls
  3. SAK-36384

Accessibility: Remove onkeypress handlers from "Open" and "Close" links on Test/Quiz Settings page

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Verified
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.9.0
    • Fix Version/s: 10.0
    • Labels:
    • Environment:
      Sakai 2.9.0-B03 QA Servers

      Description

      An onkeypress handler on the "Open" and "Close" links cause the links to activate when a user simply tabs off of the links. Users should be able to navigate (tab) through all the controls without the controls activating unintentionally.

      The onkeypress handlers on the links are redundant to the onclick handler and are causing problems for keyboard only users. For examples, please see the parent JIRA issue.

      The onkeypress handler is not needed as Web Browsers will fire the onclick handler on links and buttons even if they are activated by a keyboard interaction.

      Suggested fix: Remove the redundant onkeypress handler from the "Open" and "Close" links.

      Change:
      <p>
      <a title="Open All Menus" onkeypress="showDivs();" onclick="showDivs();" href="#">Open</a> |
      <a title="Close All Menus" onkeypress="hideDivs();" onclick="hideDivs();" href="#">Close</a> All Menus
      </p>

      To:
      <p>
      <a title="Open All Menus" onclick="showDivs();" href="#">Open</a> |
      <a title="Close All Menus" onclick="hideDivs();" href="#">Close</a> All Menus
      </p>

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  samigoteam SAMIGO TEAM (Inactive)
                  Reporter:
                  brichwin Brian Richwine
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration