From 80fb6b8da144bd9c2313702e23a35d72fa620135 Mon Sep 17 00:00:00 2001 From: Evan You Date: Tue, 11 Dec 2018 16:58:18 -0500 Subject: [PATCH] revert: "chore: use keypress in TodoMVC example for IME input methods (#9172)" This reverts commit 6980035a86cfb79368af77a5040e468177d6b14a. --- examples/todomvc/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/todomvc/index.html b/examples/todomvc/index.html index 5a979c61a48..edf28d84728 100644 --- a/examples/todomvc/index.html +++ b/examples/todomvc/index.html @@ -15,7 +15,7 @@

todos

autofocus autocomplete="off" placeholder="What needs to be done?" v-model="newTodo" - @keypress.enter="addTodo"> + @keyup.enter="addTodo">
@@ -33,7 +33,7 @@

todos

v-model="todo.title" v-todo-focus="todo == editedTodo" @blur="doneEdit(todo)" - @keypress.enter="doneEdit(todo)" + @keyup.enter="doneEdit(todo)" @keyup.esc="cancelEdit(todo)">