Here is an example jsfiddle. I created a div and is marked as editable. I am trying to capture and prevent entering a new line input key. This is like returning false from an event function and stopping the event from spreading will not prevent the new line <div><br></div>(other browsers insert other things in chrome ... trying to prevent all this ...) from being inserted.
source
share