Skip to content

Commit 6980035

Browse files
FumioNonakayyx990803
authored andcommitted
chore: use keypress in TodoMVC example for IME input methods (#9172)
1 parent 87bad80 commit 6980035

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/todomvc/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ <h1>todos</h1>
1515
autofocus autocomplete="off"
1616
placeholder="What needs to be done?"
1717
v-model="newTodo"
18-
@keyup.enter="addTodo">
18+
@keypress.enter="addTodo">
1919
</header>
2020
<section class="main" v-show="todos.length" v-cloak>
2121
<input class="toggle-all" type="checkbox" v-model="allDone">
@@ -33,7 +33,7 @@ <h1>todos</h1>
3333
v-model="todo.title"
3434
v-todo-focus="todo == editedTodo"
3535
@blur="doneEdit(todo)"
36-
@keyup.enter="doneEdit(todo)"
36+
@keypress.enter="doneEdit(todo)"
3737
@keyup.esc="cancelEdit(todo)">
3838
</li>
3939
</ul>

0 commit comments

Comments
 (0)