Skip to content

[esc] key cancels editing mode (without saving) #64

Closed
@nelsonic

Description

@nelsonic

According to: https://github.com/tastejs/todomvc/blob/master/app-spec.md#editing

If escape is pressed during the edit, the edit state should be left and any changes be discarded.

and the test assertions: https://github.com/tastejs/todomvc/tree/master/tests#example-output

✓ should cancel edits on escape (1115ms)
  • Add keyboard event listener case in subscriptions for [esc] key
  • Trigger signal('CANCEL')() to cancel editing without saving changes.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions