I work on Azure Devops. I was typing a comment on a ticket and somehow the placement of my cursor on the toolbar area activated a button which then navigated me away from the page I was typing in. I did not get a warning 'are you sure you want to leave this page' and lost everything I was typing. Basically, I was typing a comment and the button activated and the page navigated away as I was typing. It was really weird and I don't know how to reproduce the issue.
I'm looking for a preventative tool so hopefully this doesn't happen again. Does Chrome browser have an extension that can be used to prevent this sort of thing from happening? Can it be defined by website url? I obviously don't need it to stop and ask me if I'm ok from navigating away from every single page I'm viewing or working on...just the ones I'm typing and haven't posted my comment yet (ie Azure Devops).