Allow user preference to override enter to submit

I am continuously hitting enter to put newlines in my questions (lots of code) and it is a massive pain to have a half-written question submitted when I hit enter for a new line. I know I can use shift-enter but this is not “normal” typing, is different from all other bulk text editing tools and is very easy to forget when you are flipping back-and-fore from a code editor. It would be a few lines of JS to allow the user to store a custom preference for ctrl-enter to submit.