mirror of
https://github.com/plankanban/planka.git
synced 2026-02-25 11:21:03 +03:00
Lost work when pressing escape #22
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Johannes-Larsson on GitHub (Aug 24, 2020).
As a vim user I press escape a lot out of habit when editing text. And when using Planka this causes windows to close and the text I was writing to be lost instantly, for example when writing a description on a card.
Something like an "are you sure"-prompt would be nice to have.
Also related to #23 I guess.
@nickbe commented on GitHub (Aug 25, 2020):
While this might affect users who - like you - are used to ESC keys, I would decide against "yes/no" behaviour.
For me ESC means and always ment "undo/leave".
So in this case I find the current behaviour rather logical. Otherwise we'd need undo functions just to let users revert their changes, which is what I mostly use the ESC key for when I cancel editing text right now.
@meltyshev commented on GitHub (Aug 25, 2020):
I would add a feature that all unsaved text can be restored with some button «You have unsaved edits on this field. View edits - Discard». It also will be helpful if the browser crashes or something similar.
@paweb commented on GitHub (Oct 11, 2023):
You lose the unsaved description also when you for example accidentally click outside of the modal. The modal closes then and your description is gone. Another way to fix this would be just to autosave the description without needing to press the Save button.
@meltyshev commented on GitHub (May 12, 2025):
This should be resolved in v2, but feel free to reopen if the issue persists.