Skip to content

Commit

Permalink
chore: use keypress in TodoMVC example for IME input methods (#9172)
Browse files Browse the repository at this point in the history
  • Loading branch information
FumioNonaka authored and yyx990803 committed Dec 11, 2018
1 parent 87bad80 commit 6980035
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/todomvc/index.html
Expand Up @@ -15,7 +15,7 @@ <h1>todos</h1>
autofocus autocomplete="off"
placeholder="What needs to be done?"
v-model="newTodo"
@keyup.enter="addTodo">
@keypress.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)"
@keyup.enter="doneEdit(todo)"
@keypress.enter="doneEdit(todo)"
@keyup.esc="cancelEdit(todo)">
</li>
</ul>
Expand Down

0 comments on commit 6980035

Please sign in to comment.