Skip to content

Add new todo item on pressing enter in between todo list rows #24

@kamalkishor1991

Description

@kamalkishor1991

Pressing enter for creating new row works for the first item but it does not work for rest of the rows.
https://upnotes-io.github.io/react-todo/

  1. If cursor is in the middle the line should get split into 2 with dividing the text into 2 lines and cursor remains in the next line.
  2. By pressing enter in the end of the line should cause new row to be created in the next line and the curser shoud be in the next line.
  3. By pressing enter in the begining of the line should cause the row to be created at the top and the cursor should remain in the current line.

Basically 2ed and 3ed points are special conditions to the first point so if first usecase is implemented correctally the 2ed and 3ed should automatically work.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions