# Pressing shift+enter in quoted text isn't undoable

**URL:** https://meta.discourse.org/t/pressing-shift-enter-in-quoted-text-isnt-undoable/26897
**Category:** Support
**Created:** [28 במרץ,‏ 2015,‏ 5:42am UTC](https://meta.discourse.org/t/pressing-shift-enter-in-quoted-text-isnt-undoable/26897 "2015-03-28T05:42:57Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![dandv](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dandv/32/169779_2.png) [@dandv](https://meta.discourse.org/u/dandv)
#### Post date: [28 במרץ,‏ 2015,‏ 5:42am UTC](https://meta.discourse.org/t/pressing-shift-enter-in-quoted-text-isnt-undoable/26897/1 "2015-03-28T05:42:57Z")

</div>

![](https://global.discourse-cdn.com/meta/original/3X/7/0/70f3de730cd543c3f9be2d65d66009521b476680.gif)

Here’s a block of quoted text for your convenience if you want to repro by editing this post:

> Lorem ipsum dolor sit amet, PRESS SHIFT ENTER HERE consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [28 במרץ,‏ 2015,‏ 7:47am UTC](https://meta.discourse.org/t/pressing-shift-enter-in-quoted-text-isnt-undoable/26897/2 "2015-03-28T07:47:51Z")

</div>

We have no custom undo behavior coded, each browser does something slightly different here, but the consensus was that custom undo caused way more support and confusion than the way it is now

For context:

[https://meta.discourse.org/t/ctrl-z-undo-and-redo-will-ignore-pasting/4537](https://meta.discourse.org/t/ctrl-z-undo-and-redo-will-ignore-pasting/4537)

> [@Ctrl+Z does not undo my previous step](https://meta.discourse.org/t/ctrl-z-does-not-undo-my-previous-step/23507):
>
> When I type something in the textarea , and select all, and ctrl+b ,and ctrl+z. I just want to undo my ctrl+b step, however it completely my textarea. I have to type the content again. It is weird the ctrl+z means clearing textarea instead of undo.

I actually think this SHIFT ENTER behavior is super odd and totally unneeded. I think the correct action here is to remove this crazy magic, I can not see any use for it.

---

<div class="post-metadata">

### Author: ![elberet](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elberet/32/122404_2.png) [@elberet](https://meta.discourse.org/u/elberet)
#### Post date: [28 במרץ,‏ 2015,‏ 12:00pm UTC](https://meta.discourse.org/t/pressing-shift-enter-in-quoted-text-isnt-undoable/26897/3 "2015-03-28T12:00:46Z")

</div>

I don’t get it. What’s actually happening? I’m not seeing any difference between regular ⏎ and ⇧+⏎…

---

<div class="post-metadata">

### Author: ![dandv](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dandv/32/169779_2.png) [@dandv](https://meta.discourse.org/u/dandv)
#### Post date: [29 במרץ,‏ 2015,‏ 9:38pm UTC](https://meta.discourse.org/t/pressing-shift-enter-in-quoted-text-isnt-undoable/26897/4 "2015-03-29T21:38:04Z")

</div>

Try pressing Enter after “HERE” is my quoted block. The line will simply be broken.

If you press Shift+Enter, each of the subsequent lines will be prefixed with `>`.

---

<div class="post-metadata">

### Author: ![elberet](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elberet/32/122404_2.png) [@elberet](https://meta.discourse.org/u/elberet)
#### Post date: [30 במרץ,‏ 2015,‏ 3:48am UTC](https://meta.discourse.org/t/pressing-shift-enter-in-quoted-text-isnt-undoable/26897/5 "2015-03-30T03:48:04Z")

</div>

Oh, I see. It only occurs in `>` lines…

And yes, this is a very weird feature. It’s almost reminiscent of email clients, where rebreaking quoted lines is a typical feature — but it doesn’t apply to Discourse at all.

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [30 במרץ,‏ 2015,‏ 5:14am UTC](https://meta.discourse.org/t/pressing-shift-enter-in-quoted-text-isnt-undoable/26897/6 "2015-03-30T05:14:50Z")

</div>

> Lorem ipsum dolor sit amet, PRESS SHIFT ENTER HERE  
> consectetur adipiscing elit, sed do eiusmod tempor incididunt ut  
> labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud  
> exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.  
> Duis aute irure dolor in reprehenderit in voluptate velit esse cillum  
> dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non  
> proident, sunt in culpa qui officia deserunt mollit anim id est  
> laborum.

😮 Wow, it’s a “reflow text” button.

That’s not useful at all.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [30 במרץ,‏ 2015,‏ 5:53am UTC](https://meta.discourse.org/t/pressing-shift-enter-in-quoted-text-isnt-undoable/26897/7 "2015-03-30T05:53:45Z")

</div>

Feel free to rip it out and send a PR

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [30 במרץ,‏ 2015,‏ 11:06pm UTC](https://meta.discourse.org/t/pressing-shift-enter-in-quoted-text-isnt-undoable/26897/8 "2015-03-30T23:06:12Z")

</div>

Yeah this should be ripped out.

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [3 באפריל,‏ 2015,‏ 2:15pm UTC](https://meta.discourse.org/t/pressing-shift-enter-in-quoted-text-isnt-undoable/26897/9 "2015-04-03T14:15:45Z")

</div>

Okay, ripped out ✂

[https://github.com/discourse/discourse/pull/3330](https://github.com/discourse/discourse/pull/3330)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [3 באפריל,‏ 2015,‏ 6:22pm UTC](https://meta.discourse.org/t/pressing-shift-enter-in-quoted-text-isnt-undoable/26897/10 "2015-04-03T18:22:59Z")

</div>



---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [3 באפריל,‏ 2015,‏ 9:15pm UTC](https://meta.discourse.org/t/pressing-shift-enter-in-quoted-text-isnt-undoable/26897/11 "2015-04-03T21:15:40Z")

</div>

That is a lot of code for such an edge case.
