mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 11:48:26 -06:00
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.
This commit is contained in:
parent
2c7906999a
commit
c593727497
@ -632,7 +632,9 @@ export default Controller.extend({
|
||||
|
||||
save(ignore, event) {
|
||||
this.save(false, {
|
||||
jump: !event?.shiftKey && !this.skipJumpOnSave,
|
||||
jump:
|
||||
!(event?.shiftKey && this.get("model.replyingToTopic")) &&
|
||||
!this.skipJumpOnSave,
|
||||
});
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user