this post was submitted on 20 Jan 2024
4 points (83.3% liked)

PieFed Meta

332 readers
1 users here now

Discuss PieFed project direction, provide feedback, ask questions, suggest improvements, and engage in conversations related to the platform organization, policies, features, and community dynamics.

Wiki

founded 10 months ago
MODERATORS
 

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.

you are viewing a single comment's thread
view the rest of the comments
[โ€“] tnbd2024@piefed.social 1 points 8 months ago (1 children)

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@piefed.social 1 points 8 months ago

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