From 6980035a86cfb79368af77a5040e468177d6b14a Mon Sep 17 00:00:00 2001 From: Fumio Nonaka Date: Wed, 12 Dec 2018 01:35:21 +0900 Subject: [PATCH] chore: use keypress in TodoMVC example for IME input methods (#9172) --- 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 edf28d84..5a979c61 100644 --- a/examples/todomvc/index.html +++ b/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">
@@ -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)">