Using keyboard shortcuts to navigate between replies causes topic to be "stuck"

AI-generated summary

A user reported a bug where keyboard shortcuts (J and K) cause the topic to become ‘stuck’ when reaching a specific reply, preventing further navigation or scrolling to load more content NateDhaliwal. tgxworld confirmed they could reproduce the issue consistently, noting it often occurs when the last topic fits neatly on the screen, and assigned it medium priority. Although NateDhaliwal initially thought it was fixed, tgxworld clarified that the issue persists but is not reliably reproducible. Moin added that they experienced similar stuck states but without using keyboard shortcuts, though they also lacked a reliable reproduction method. The discussion concluded with saquetim sharing a pull request (#37788) that addresses the issue.

When moving down a topic using J, it gets to a point where you can’t navigate any further using the key. Even if I try to move up (K) and move down, I still cannot move below that specific reply.

I believe this reply is the last of the loaded replies and the keyboard shortcuts doesn’t trigger the loading of the next batch of replies?

Also, scrolling up/down when encountering this does not work. Oddly enough, you can’t load the next batch even if you try and scroll down - no loading spinner, nothing, even the bottom reply isn’t the last one.

2 Likes

I can reproduce this consistently on an internal site and it seems to happen when the height of the last topic fits nicely within the screen.

Going to put a pri-medium on this for the team to look at.

3 Likes

This issue seems to be fixed now @tgxworld ?

I don’t think anything was done here. I can still reproduce it but not in a reliable way.

1 Like

I sometimes got stuck in a topic too. But it was not because of using a keyboard shortcut. I don’t use keyboard shortcuts to navigate on my tablet.
But I also have no reliable repro, so I’m not sure if this adds anything helpful.

https://github.com/discourse/discourse/pull/37788

The PR above addresses this issue.

2 Likes

This topic was automatically closed after 4 days. New replies are no longer allowed.