diff --git a/examples/todomvc/index.html b/examples/todomvc/index.html index edf28d84728..5a979c61a48 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" - @keyup.enter="addTodo"> + @keypress.enter="addTodo">
@@ -33,7 +33,7 @@

todos

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