<p></p>
<p dir="auto">If a user is writing a changeset comment on a changeset page <code class="notranslate">https://www.openstreetmap.org/changeset/:id:</code> and they accidentally close the browser tab, the in-progress comment is lost upon restoring the tab.</p>
<p dir="auto">It would be preferable for the in-progress comment to be restored in the input text area upon restoring the tab.</p>
<p dir="auto">For example this happens here in GitHub, if you're entering a comment, writing an issue description and close the tab, then restore that tab, the in-progress text is restored.</p>
<p dir="auto">In my case this happens because in Vim Ctrl+W deletes the last word, but in Chrome it closes the tab and sometimes they can be mixed up.</p>
<p dir="auto">An alternative would be to popup that their message will be lost and if they should continue, but I see this as a worse UX.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/issues/5624">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLMKWDOJMN75BWXAN3D2ONL57AVCNFSM6AAAAABWTPN7S2VHI2DSMVQWIX3LMV43ASLTON2WKOZSHAZTKNBWGQ2DGNA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLJRV5YHOIF247AAU3L2ONL57A5CNFSM6AAAAABWTPN7S2WGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHKSAOA6I.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/issues/5624</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/issues/5624",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/5624",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>