Shortcut to reply prints an "R" into the composer window

AI-generated summary

Users reported a bug where pressing R (or Shift+R) to reply to a post inserts an “R” into the composer instead of opening a blank reply field. This regression appears tied to recent composer updates and affects both Meta and Try Discourse instances. jomaxro clarified that users must first select a target post using J and K navigation keys — without this, Discourse doesn’t know which post to reply to. fhe initially assumed the reply target was inferred from the URL (e.g., 107202/4), but zogstrip explained this isn’t reliable when multiple posts are visible. j.jaffeux suspected Ember 3 as the culprit and later confirmed the fix is in PR #6930. The issue was ultimately resolved by ensuring the reply shortcut doesn’t inject the keypress into the composer when triggered.

Looks like we’ve got a regression where hitting R to bring up the reply composer while viewing a post prints an “R” in the composer window, where it should be a blank composer. I can reproduce this on both meta and try.

Possibly due to the recent composer work, @nbianca ?

4 Likes

In addition, it seems that reply to post via r is not working anymore, shift + r shows the above-mentioned behavior.

Reply to post also prints an r into the composer, but it works. Have you selected a post to reply to first via j and k?

4 Likes

Ninja’d!

I also noticed that the same issue exists on the r shortcut, too

1 Like

Thanks for pointing. I was unaware of that necessity, learning new Discourse features every day :nerd_face:

2 Likes

Yep, without it Discourse doesn’t know which post you’re replying to :smiley:.

1 Like

I thought it takes the one which is active in the address bar, e.g, 107202/4 or 107202/5 (it somehow already knows which post I’m looking at).

1 Like

Might be ember3 , will look tomorrow

5 Likes

Should be fixed by:

9 Likes

We can’t do that based on the URL alone when there are multiple posts in the viewport, we can’t know which one you are replying to :wink:

4 Likes

Somehow I knew that I was missing something :slight_smile: Thanks for the clarification!

1 Like