Enter key is used to insert a line break into the editable area. This default behavior could be altered by the context of current selection, type of the content or a modifier key pressed along the Enter key.
User expects that:
When the Enter key is pressed inside a block context, it MUST produce the new block context. If the type of the new block context is not specified by a certain feature, the new block context MUST be a paragraph context and MUST be created by inserting the new p
element[1] into the current selection position.
When the Shift+Enter combination is pressed inside a block context, it MUST produce the new line break, by inserting the new br
element[2] into the current selection position.
If the current selection position does not allow block context, pressing the Enter key or pressing the Shift+Enter combination MUST produce the new line break, by inserting the new br
element[2].
If the current selection position does not allow block context and does not allow the br
element, pressing the Enter key or pressing the Shift+Enter combination MUST be disabled.