mirror of
https://github.com/vuejs/vue.git
synced 2024-11-21 20:28:54 +00:00
revert: "chore: use keypress in TodoMVC example for IME input methods (#9172)"
This reverts commit 6980035a86
.
This commit is contained in:
parent
4074104fac
commit
80fb6b8da1
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user