diff --git a/examples/todomvc/index.html b/examples/todomvc/index.html index 5a979c61a48..edf28d84728 100644 --- a/examples/todomvc/index.html +++ b/examples/todomvc/index.html @@ -15,7 +15,7 @@

todos

autofocus autocomplete="off" placeholder="What needs to be done?" v-model="newTodo" - @keypress.enter="addTodo"> + @keyup.enter="addTodo">
@@ -33,7 +33,7 @@

todos

v-model="todo.title" v-todo-focus="todo == editedTodo" @blur="doneEdit(todo)" - @keypress.enter="doneEdit(todo)" + @keyup.enter="doneEdit(todo)" @keyup.esc="cancelEdit(todo)">