FIX: navigate to topic/PM regardless of Shift key press (#15551)

FIX: navigate to topic/PM regardless of Shift key press (#15551)

Currently when pressing Shift key and hitting Reply button the user stays on the post they are on and does not get navigated to newly created topic/PM/reply. This is fine for replies but creates confusion when composing a new topic/PM.

This commits makes it such that pressing Shift key and Reply button (or ctrl-shift-enter / cmd-shift-enter) works only for replies and not for new topic/PM. The user will always be navigated to new topic/PM.

diff --git a/app/assets/javascripts/discourse/app/controllers/composer.js b/app/assets/javascripts/discourse/app/controllers/composer.js
index 3e81351..e7c5b6c 100644
--- a/app/assets/javascripts/discourse/app/controllers/composer.js
+++ b/app/assets/javascripts/discourse/app/controllers/composer.js
@@ -632,7 +632,9 @@ export default Controller.extend({
     save(ignore, event) {, {
-        jump: !event?.shiftKey && !this.skipJumpOnSave,
+        jump:
+          !(event?.shiftKey && this.get("model.replyingToTopic")) &&
+          !this.skipJumpOnSave,

GitHub sha: c5937274972e72ce615b9c88e475561cd5d6fcdf

This commit appears in #15551 which was approved by pmusaraj. It was merged by SamSaffron.