dispatch icon indicating copy to clipboard operation
dispatch copied to clipboard

Pressing enter key empty line should break out of list

Open psiemens opened this issue 6 years ago • 4 comments

screen shot 2017-09-25 at 12 09 42 pm

Pressing the enter key in this case should break out of the list, but instead it continues to add empty bullets.

psiemens avatar Sep 25 '17 19:09 psiemens

is this a problem w/ draft-js, fixable by this open pr from a year ago? https://github.com/facebook/draft-js/pull/769

blx avatar Sep 28 '17 05:09 blx

A bit of a tangent, but what if the user wants to have a nested list? It seems like the expected behaviour would be to press enter and then tab. Don't know how useful it is to support nested lists (or if anyone would even use them) but it's something to consider.

JimFung avatar Jan 11 '18 17:01 JimFung

@JimFung I don't think that's contradictory to the bug report.

  • To indent the item, cursor is at the start of a bullet point and you Tab
  • To break out of the list, cursor is on an empty bullet point line and you Enter

blx avatar Jan 11 '18 18:01 blx

Good point @blx

JimFung avatar Jan 11 '18 19:01 JimFung