cheeaun / phanpy

A minimalistic opinionated Mastodon web client
https://phanpy.social
MIT License
944 stars 85 forks source link

[FR] Keyboard support #57

Open hboon opened 1 year ago

hboon commented 1 year ago

Up and down arrow already scrolls the page, would be great if they move and highlights the current toot and selects it (like clicking on it)

cheeaun commented 1 year ago

FYI, there are j/k shortcuts! But they're not on every page/modal yet.

I was thinking of aliasing them to up and down keys too but decided not to override existing browser/OS behaviour.

hboon commented 1 year ago

Oh! j/k is good enough for me. It works in phanpy.social but not dev.phanpy.social. For the latter, I have to click a toot first, escape and then j/k works. (ditto for space to scroll)

hboon commented 1 year ago

Doesn't seem to work in Notifications page for both sites.

johnsonm commented 9 months ago

I love having j / k to scroll through posts. But it would be really awesome if the selected post would scroll fully into view, or, if it can't fit, with the top of the post at the top of the view. ☺

cheeaun commented 9 months ago

@johnsonm could you create another issue and maybe add a screenshot? May need to know your browser and OS too 🙇‍♂️

johnsonm commented 9 months ago

246 opened, hopefully with all useful and necessary detail. :grin:

Yukaii commented 2 months ago

https://gist.github.com/Yukaii/7d90df30cca270eba186a3c5f715dca0

Made a user script to quickly navigate to home or notifications (g then h and g then n). Maybe it can be integrated into Phanpy's codebase.

Geobert commented 1 month ago

As a non Qwerty user, it would be great to be able to customize the shortcuts :)

Geobert commented 4 days ago

Can we have an option to turn off keyboard shortcuts? They conflict with Vimium extension