Better handling of escape key when there are unsaved changes, now we
reset those changes, rather than saving them.