Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for quick keys #5

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

simonminer
Copy link
Contributor

@simonminer simonminer commented Apr 5, 2021

Hi @suellybelly,

Here's an eleventh hour PR to add support for the quick keys @dorlync set out. Specifically:

  • Press h/H to move forward/backward through headings.
  • Press k/K to move forward/backward through links.
  • Press r/R to move forward/backward through page regions and landmarks.
  • Press f/F to move forward/backward through form controls.
  • Press b/B to move forward/backward through buttons.
  • Press l/L to move forward/backward through lists.

Elements need to be focusable for the quick keys to work on them. Right now, the application only contains a subset of the elements supported by quick keys (headings, links, and a single list), but these appear to work properly.

Specific changes to support quick keys include the following.

  • Adding the following files to the repo
    • build/assets/js/modules/quick-key.js - JS class to represent a single quick key
    • build/assets/js/modules/quick-key-manager.js - JS clas to manage a set of quick keys
    • build/assets/js/quick-key-setup.js - JS module to load quick keys listed above.
  • Add a <script> tag to build/index.html to load the quick keys into the application.
  • Add a sentence explaining how to use applicable quick keys to the quiz overlay.

FYI - the files listed above were copied from a separate repo I've been working on to generalize the Inclusiville simulated screen reader.

Hope this feature can be added before the project is submitted. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant