jonof / moodle-block_completion_progress

A time management tool for students using activity completion
https://moodle.org/plugins/block_completion_progress
GNU General Public License v3.0
17 stars 65 forks source link

#52 Arrow keys navigation and screen reader support for progress bar #106

Open susyzan opened 6 months ago

susyzan commented 6 months ago

Hello!

I created this pull request as a suggestion on how to implement keyboard support.

Users should be able to tab into the progress bar and the first cell, and use arrow keys to select the cell. Pressing tabs moves the focus out of the bar to the description.

What this code does:

IMPORTANT! I haven't implemented the tab arrow key navigation as it looks like it's taken care by Boost in aria.js updateTabFocus.

This is far from perfect and I could only test it on Chrome, Firefox, Safari on a Mac. I also briefly tested it with VoiceOver.

Unfortunately, it may be a bit rushed due to time limitations.

I hope this helps somehow.

Thanks Susie