File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 11
11
< section class ="todoapp " v-cloak >
12
12
< header class ="header ">
13
13
< h1 > todos</ h1 >
14
- < input class ="new-todo " autofocus autocomplete ="off " placeholder ="What needs to be done? " v-model ="newTodo " @keyup .enter ="addTodo ">
14
+ < input class ="new-todo " autofocus autocomplete ="off " placeholder ="What needs to be done? " v-model ="newTodo " @keydown .enter ="addTodo ">
15
15
</ header >
16
16
< section class ="main " v-show ="todos.length ">
17
17
< input id ="toggle-all " class ="toggle-all " type ="checkbox " v-model ="allDone ">
@@ -23,7 +23,7 @@ <h1>todos</h1>
23
23
< label @dblclick ="editTodo(todo) "> {{todo.title}}</ label >
24
24
< button class ="destroy " @click ="removeTodo(todo) "> </ button >
25
25
</ div >
26
- < input class ="edit " type ="text " v-model ="todo.title " v-todo-focus ="todo == editedTodo " @blur ="doneEdit(todo) " @keyup .enter ="doneEdit(todo) " @keyup .esc ="cancelEdit(todo) ">
26
+ < input class ="edit " type ="text " v-model ="todo.title " v-todo-focus ="todo == editedTodo " @blur ="doneEdit(todo) " @keydown .enter ="doneEdit(todo) " @keydown .esc ="cancelEdit(todo) ">
27
27
</ li >
28
28
</ ul >
29
29
</ section >
You can’t perform that action at this time.
0 commit comments