phanpy icon indicating copy to clipboard operation
phanpy copied to clipboard

[FR] Keyboard support

Open hboon opened this issue 2 years ago • 9 comments

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

hboon avatar Feb 13 '23 04:02 hboon

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.

cheeaun avatar Feb 13 '23 05:02 cheeaun

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 avatar Feb 13 '23 05:02 hboon

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

hboon avatar Feb 13 '23 05:02 hboon

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. ☺

johnsonm avatar Oct 02 '23 23:10 johnsonm

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

cheeaun avatar Oct 03 '23 01:10 cheeaun

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

johnsonm avatar Oct 03 '23 02:10 johnsonm

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.

Yukaii avatar May 07 '24 08:05 Yukaii

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

Geobert avatar Jun 04 '24 07:06 Geobert

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

Geobert avatar Jul 02 '24 14:07 Geobert