Official Vikunja import
Go to file
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
.github docs: update issue template 2024-02-08 14:31:02 +01:00
.vscode chore: add go and direnv to recommended vscode extensions 2024-09-18 10:43:23 +02:00
build Add systemd service file to linux packages 2021-03-28 18:18:58 +02:00
desktop chore(deps): update desktop lockfile 2024-09-20 17:42:37 +02:00
frontend feat(task): cancel editing task title with escape (#2730) 2024-10-02 07:32:33 +00:00
pkg fix(colors): truncate longer hex color values 2024-09-30 20:06:10 +02:00
rest feat(notifications): add endpoint to mark all notifications as read 2023-10-20 16:40:47 +02:00
.dockerignore feat(docker)!: use scratch as base image 2024-02-25 22:49:04 +01:00
.drone.yml fix(desktop): use pnpm in ci 2024-09-29 16:07:58 +02:00
.editorconfig Add default list setting (#875) 2021-06-02 21:20:22 +00:00
.envrc feat: switch from nix flakes to devenv 2024-08-12 12:17:31 +02:00
.gitignore chore(devenv): do not install cypress on darwin 2024-09-18 14:30:38 +02:00
.golangci.yml chore(deps): update golangci/golangci-lint docker tag to v1.61.0 (#2678) 2024-09-12 13:31:26 +00:00
CHANGELOG.md chore: 0.24.4 release preperation 2024-09-29 15:46:37 +02:00
CONTRIBUTING.md chore: update contributing guidelines 2023-10-10 17:48:10 +02:00
Dockerfile chore(docker): use new env format 2024-08-29 11:19:46 +02:00
LICENSE Change license to AGPLv3 2020-12-23 16:41:52 +01:00
README.md chore: 0.24.4 release preperation 2024-09-29 15:46:37 +02:00
cliff.toml chore: add git-cliff config 2022-08-03 20:06:35 +02:00
code-header-template.txt chore: remove year from copyright headers 2023-09-01 08:32:28 +02:00
config-raw.json feat: auto tls 2024-09-29 18:20:30 +02:00
devenv.lock chore(deps): update golangci/golangci-lint docker tag to v1.61.0 (#2678) 2024-09-12 13:31:26 +00:00
devenv.nix chore(devenv): do not install cypress on darwin 2024-09-18 14:30:38 +02:00
devenv.yaml feat: switch from nix flakes to devenv 2024-08-12 12:17:31 +02:00
go.mod fix(deps): update module github.com/typesense/typesense-go to v2 2024-09-19 15:30:13 +02:00
go.sum fix(deps): update module github.com/typesense/typesense-go to v2 2024-09-19 15:30:13 +02:00
magefile.go fix(mage): actually pass the cli parameter to the function 2024-09-29 18:22:21 +02:00
main.go chore: remove year from copyright headers 2023-09-01 08:32:28 +02:00
nfpm.yaml Add systemd service file to linux packages 2021-03-28 18:18:58 +02:00
publiccode.yml docs: update publiccode.yml [skip ci] 2024-02-25 14:06:23 +01:00
renovate.json chore(deps): move renovate config 2024-02-07 15:08:01 +01:00
tools.go chore: remove year from copyright headers 2023-09-01 08:32:28 +02:00
tsconfig.json feat: add root tsconfig 2024-06-19 14:05:41 +00:00
vikunja.service Add systemd service file to linux packages 2021-03-28 18:18:58 +02:00

README.md

Build Status License: AGPL v3 Install Docker Pulls Swagger Docs Go Report Card

Vikunja

The Todo-app to organize your life.

If Vikunja is useful to you, please consider buying me a coffee, sponsoring me on GitHub or buying a sticker pack. I'm also offering a hosted version of Vikunja if you want a hassle-free solution for yourself or your team.

Table of contents

Security Reports

If you find any security-related issues you don't want to disclose publicly, please use the contact information on our website.

Features

See the features page on our website for a more exhaustive list or try it on try.vikunja.io!

Docs

All docs can be found on the Vikunja home page.

Roadmap

See the roadmap (hosted on Vikunja!) for more!

Contributing

Please check out the contribuition guidelines on the website.

License

This project is licensed under the AGPLv3 License. See the LICENSE file for the full license text.