Explorar o código

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

This reverts commit 6980035a86cfb79368af77a5040e468177d6b14a.
Evan You %!s(int64=7) %!d(string=hai) anos
pai
achega
80fb6b8da1
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      examples/todomvc/index.html

+ 2 - 2
examples/todomvc/index.html

@@ -15,7 +15,7 @@
           autofocus autocomplete="off"
           autofocus autocomplete="off"
           placeholder="What needs to be done?"
           placeholder="What needs to be done?"
           v-model="newTodo"
           v-model="newTodo"
-          @keypress.enter="addTodo">
+          @keyup.enter="addTodo">
       </header>
       </header>
       <section class="main" v-show="todos.length" v-cloak>
       <section class="main" v-show="todos.length" v-cloak>
         <input class="toggle-all" type="checkbox" v-model="allDone">
         <input class="toggle-all" type="checkbox" v-model="allDone">
@@ -33,7 +33,7 @@
               v-model="todo.title"
               v-model="todo.title"
               v-todo-focus="todo == editedTodo"
               v-todo-focus="todo == editedTodo"
               @blur="doneEdit(todo)"
               @blur="doneEdit(todo)"
-              @keypress.enter="doneEdit(todo)"
+              @keyup.enter="doneEdit(todo)"
               @keyup.esc="cancelEdit(todo)">
               @keyup.esc="cancelEdit(todo)">
           </li>
           </li>
         </ul>
         </ul>