Skip to content

Commit

Permalink
revert: "chore: use keypress in TodoMVC example for IME input methods (
Browse files Browse the repository at this point in the history
…#9172)"

This reverts commit 6980035.
  • Loading branch information
yyx990803 committed Dec 11, 2018
1 parent 4074104 commit 80fb6b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/todomvc/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ <h1>todos</h1>
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">
Expand All @@ -33,7 +33,7 @@ <h1>todos</h1>
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>
Expand Down

0 comments on commit 80fb6b8

Please sign in to comment.