Opened 5 years ago

Last modified 5 years ago

#12706 confirmed New Feature

Make enter key behaviour more intuitive

Reported by: Mark Kenny Owned by:
Priority: Normal Milestone:
Component: UI : Enter Key Version:
Keywords: Cc:

Description (last modified by Piotrek Koszuliński)

I'd like there to be another enter key mode which matches people's expectation on how paragraphs and new lines are created, based on how most people use a textarea.

The rule would be:

  • Two new lines = P element
  • One new line = BR element

Change History (1)

comment:1 Changed 5 years ago by Piotrek Koszuliński

Description: modified (diff)
Status: newconfirmed

So, as I understand:

  • By default enter would insert a <br> (as in <br> mode)
  • However, when selection is right after already existing <br> (so we are pressing enter twice), then a new paragraph would be created and the existing <br> would be removed.

This would be slightly similar to how enter works when editing a markdown file. Single new line actually does nothing, but two new lines create a new paragraph.

However, I don't know any editor which works this way and we definitely don't want the default behaviour of enter key be to insert a <br>. In most cases when user presses enter key (s)he wants to create a new paragraph. Line breaks make sense in limited number of cases and therefore there are the secondary option.

I confirm this ticket because it is a valid feature request, but we are not planning to work on this.

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy