Keyboard shortcuts for tracking topics don't work for me

AI-generated summary

BlackSheep reported that keyboard shortcuts for managing topic attention levels are non-functional in both Firefox and Chrome. Specifically, the combinations m+r, m+t, m+w, and m+m fail to execute commands for watching, tracking, normalizing, or muting topics. cpradio investigated the issue, identifying that recent changes to the HTML structure—specifically the shift from div.notification-options to span.notification-options and the lazy-loading of options only upon dropdown interaction—broke the existing keyboard logic. Consequently, a new process is required to invoke these commands. cpradio subsequently provided a fix via a pull request to the Discourse repository.

The keyboard shortcuts to manage the level of atention to a topic are not working for me, neither in firefox nor chrome.

It is very comfortable to hit m+r when i am not interested any more in the topic i am reading, but it is not working for me.

Other shortcuts that are not working for me are

m+t to track the topic
m+r to watch the topic
m+wto normalize the level of atention
m+m to mute the topic

1 me gusta

Looking at the existing keyboard logic and the output HTML of the dropdown, the keyboard shortcuts need a lot of love and will have to be done a different way now.

https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/lib/keyboard-shortcuts.js.es6#L35-L38

It is no longer div.notification-options, it is span.notification-options, but more importantly, there is no list of options in the HTML output anymore (until the dropdown is clicked upon).

So with that in mind, it will need to use a different process for invoking these commands. I’ll see if I can track it down later this afternoon.

6 Me gusta

Here you go!
https://github.com/discourse/discourse/pull/4274

6 Me gusta