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.

  • xnx@piefed.social
    link
    fedilink
    arrow-up
    1
    ·
    4 months ago

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

  • Greg L@piefed.social
    link
    fedilink
    arrow-up
    1
    ·
    4 months ago

    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.