vikunja/frontend/src
DanielPantle faff1040dc feat(task): cancel editing task title with escape (#2730)
With this change, it is possible to cancel editing the task title with pressing the escape key.

# Problem

Before it was not possible to cancel editing the task title. Pressing outside the title saves the changes that have already been done (which is intended I think). But when e.g. pasting something with a wrong format, I was not able to revert the change without saving and editing it again

Example: after accidentially pasting something with multiple lines it is not possible to escape, the only way to revert this is to save and edit again manually:
![grafik.png](/attachments/11d3559a-3111-458f-9a9c-4107292054fa)

# Solution

This PR implements a listener for the escape key that sets the title back to its original value and blurs the focus of the title

# Additional notes

- I checked this in the "page" view of the task and the "popup" view and it worked in both. For me, the popup does not close with the escape key (as it often does on other sites), therefore there is no collision with this function. But I think it would be good to check this again to make sure it does not break anything like this
- I don't know anything about testing in this repository, if it is possible/necessary to implement a test for this feature please leave a comment :)

Co-authored-by: Daniel Pantle <daniel.pantle@newtec.de>
Reviewed-on: https://kolaente.dev/vikunja/vikunja/pulls/2730
Co-authored-by: DanielPantle <danielpantle@noreply.kolaente.dev>
Co-committed-by: DanielPantle <danielpantle@noreply.kolaente.dev>
2024-10-02 07:32:33 +00:00
..
assets fix(logo): add width and height to pride logo svg 2024-06-06 16:26:56 +02:00
components feat(task): cancel editing task title with escape (#2730) 2024-10-02 07:32:33 +00:00
composables fix(filters): reload tasks silently when marking one done in the list 2024-07-18 15:51:03 +02:00
constants feat: improve types (#2368) 2024-06-12 10:04:26 +00:00
directives chore: move frontend files 2024-02-07 14:56:56 +01:00
helpers fix: lint 2024-09-14 12:12:47 +02:00
i18n chore(i18n): update translations via Crowdin 2024-10-01 00:32:32 +00:00
indexes chore: move frontend files 2024-02-07 14:56:56 +01:00
message fix(filters): show actual error message from api when the filter query is invalid 2024-07-18 15:35:33 +02:00
modelSchema/common chore: move frontend files 2024-02-07 14:56:56 +01:00
modelTypes fix(filters): correctly transform and populate saved filter when creating and editing 2024-09-19 12:21:19 +02:00
models fix(filters): correctly transform and populate saved filter when creating and editing 2024-09-19 12:21:19 +02:00
modules fix(quick add magic): assume today when no date was specified with time 2024-06-06 21:44:29 +02:00
router fix(migration): revert to old path for migration routing 2024-07-14 22:49:30 +02:00
services fix(filters): correctly transform and populate saved filter when creating and editing 2024-09-19 12:21:19 +02:00
stores fix(kanban): correctly paginate filtered kanban buckets 2024-09-14 09:37:21 +02:00
styles feat(navigation): use focus-visible for nav items 2024-09-19 12:36:33 +02:00
types feat(components): align component name casing Modal 2024-06-17 13:41:35 +02:00
views fix(task): improve task delete modal on mobile 2024-09-29 13:47:35 +02:00
App.vue feat: rename TheNavigation to AppHeader 2024-07-07 14:57:23 +00:00
histoire.setup.ts feat(components): align component name casing Modal 2024-06-17 13:41:35 +02:00
main.ts feat(components): align component name casing Modal 2024-06-17 13:41:35 +02:00
pinia.ts chore: move frontend files 2024-02-07 14:56:56 +01:00
registerServiceWorker.ts chore: move frontend files 2024-02-07 14:56:56 +01:00
sentry.ts fix(sentry): do not send api errors to sentry 2024-03-13 19:31:43 +01:00
sw.ts fix(service worker): use correct workbox version 2024-09-02 23:40:17 +02:00
urls.ts feat: add utm tag to powered by link 2024-09-23 12:07:06 +02:00
version.json chore: move frontend files 2024-02-07 14:56:56 +01:00