forked from vikunja/vikunja
feat(frontend): cancel editing task title with escape
This commit is contained in:
parent
8d05b5cb01
commit
0938edc995
@ -30,6 +30,7 @@
|
||||
:spellcheck="false"
|
||||
@blur="save(($event.target as HTMLInputElement).textContent as string)"
|
||||
@keydown.enter.prevent.stop="($event.target as HTMLInputElement).blur()"
|
||||
@keydown.esc.prevent.stop="($event.target as HTMLInputElement).textContent = task.title; ($event.target as HTMLInputElement).blur()"
|
||||
>
|
||||
{{ task.title.trim() }}
|
||||
</h1>
|
||||
|
Loading…
x
Reference in New Issue
Block a user