Closed
Description
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
insubscriptions
for[esc]
key - Trigger
signal('CANCEL')()
to cancel editing without saving changes.