revert: "chore: use keypress in TodoMVC example for IME input methods (#9172)"

This reverts commit 6980035a86.
This commit is contained in:
Evan You 2018-12-11 16:58:18 -05:00
parent 4074104fac
commit 80fb6b8da1

View File

@ -15,7 +15,7 @@
autofocus autocomplete="off"
placeholder="What needs to be done?"
v-model="newTodo"
@keypress.enter="addTodo">
@keyup.enter="addTodo">
</header>
<section class="main" v-show="todos.length" v-cloak>
<input class="toggle-all" type="checkbox" v-model="allDone">
@ -33,7 +33,7 @@
v-model="todo.title"
v-todo-focus="todo == editedTodo"
@blur="doneEdit(todo)"
@keypress.enter="doneEdit(todo)"
@keyup.enter="doneEdit(todo)"
@keyup.esc="cancelEdit(todo)">
</li>
</ul>