Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lost work when pressing escape #30

Open
Johannes-Larsson opened this issue Aug 24, 2020 · 3 comments
Open

Lost work when pressing escape #30

Johannes-Larsson opened this issue Aug 24, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@Johannes-Larsson
Copy link

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
Copy link

nickbe commented Aug 24, 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
Copy link
Member

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 meltyshev added the enhancement New feature or request label Sep 1, 2020
@paweb
Copy link

paweb commented 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants