I'm creating a barebones in-browser code editor with a pre
marked as contenteditable
. I'm listening to the input
event to perform code highlighting and some other side effects.
When a user hits Shift+Enter two line breaks are inserted which confuses my program and messes up cursor positioning. Is there a way to disable this?