planka icon indicating copy to clipboard operation
planka copied to clipboard

Lost work when pressing escape

Open Johannes-Larsson opened this issue 4 years ago • 3 comments

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.

Johannes-Larsson avatar Aug 24 '20 13:08 Johannes-Larsson

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.

nickbe avatar Aug 24 '20 22:08 nickbe

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.

meltyshev avatar Aug 25 '20 15:08 meltyshev

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.

paweb avatar Oct 11 '23 17:10 paweb