planka
planka copied to clipboard
Lost work when pressing escape
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.
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.
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.
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.