antlr4-lab icon indicating copy to clipboard operation
antlr4-lab copied to clipboard

Warn you that your edits will be lost

Open kzeitz opened this issue 2 years ago • 1 comments

I was using the antlr4-lab and noticed an issue, so I reflexively clicked the 'issues' link and inadvertently lost some edits.

Perhaps the links could open another tab by default, or at least prompt you that you will be lose any changes you've made.

kzeitz avatar Jan 11 '23 20:01 kzeitz

Excellent point. Yeah I'm worried about that as well. Not sure how to handle that but perhaps we can simply detect when you were going to move away from the "app" with a bit of JavaScript. We can then pop up a dialog box warning you. I think Jupyter notebooks and things like that work like that.

parrt avatar Jan 14 '23 19:01 parrt