Browse Source

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

dev
Fumio Nonaka 6 years ago
committed by Evan You
parent
commit
6980035a86
  1. 4
      examples/todomvc/index.html

4
examples/todomvc/index.html

@ -15,7 +15,7 @@
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">
@ -33,7 +33,7 @@
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>

Loading…
Cancel
Save