Add saving task title with ctrl+enter

This commit is contained in:
kolaente 2020-03-01 16:57:42 +01:00
parent f3ec9be8e5
commit 6d4ac2f2b6
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -6,7 +6,7 @@
#{{ task.id }}
</h1>
<div class="is-done" v-if="task.done">Done</div>
<h1 class="title input" contenteditable="true" @focusout="saveTaskOnChange()" ref="taskTitle">{{ task.text }}</h1>
<h1 class="title input" contenteditable="true" @focusout="saveTaskOnChange()" ref="taskTitle" @keyup.ctrl.enter="saveTaskOnChange()">{{ task.text }}</h1>
</div>
<h6 class="subtitle">
{{ namespace.name }} >