Accessibility - keyboard shortcuts

submitted by Rimu

piefed.social/keyboard_shortcuts

I've recently added keyboard shortcuts for common actions. I find it much quicker to vote by using the A or Z keys! Also using X to see an image is very useful.

For now this works for posts but not comments. The HTML structure of comments is more complicated so I'll need to write different code for navigating those.

Log in to comment

4 Comments

Greg L

Heya, decided to test out the keyboard shortcuts while using Edge on Windows 11. I will point out that I use a screen reader, specifically NVDA but this might apply to other screen readers as well. It appears that using the keyboard shortcuts doesn't work while a screen reader is active, but using the various built-in navigation keystrokes NVDA provides I was able to interact with the up vote/down vote buttons and navigate through posts/comments without issue. Having keyboard shortcuts is a nice to have feature, but having them overridden by the screen reader isn't a dealbreaker for me personally.

Rimu [OP]

Thanks for bringing this up.

It looks like the approach I took with the way I implemented this was the wrong one, especially with the way focus moves around. I need to work with the built-in browser focus rather than code my own.

Related issues are already created in the issue tracker, feel free to subscribe to anything interesting at https://codeberg.org/rimu/pyfedi/issues?type=all&state=open&labels=&milestone=0&project=0&assignee=0&poster=0&q=keyboard

xnx

Oh nice keyboard shortcuts are awesome. Would love to be able to submit the comment I'm writing by pressing Alt\Command Enter!

Rimu [OP]

Good idea. I made a ticket about it so I don't forget https://codeberg.org/rimu/pyfedi/issues/86