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
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.