Most of the time this happened to me when adding code-formatting to existing comments, since the backtick (`) is just below the Esc key in my keyboard layout.
It's really frustrating that all the work you've been formulating/thinking while editing the comment will just be discarded when pressing Esc accidentally.
It would be nice to add a prompt if you've made changes then you tried to cancel or maybe removing that functionality since there is already a cancel button.
Esc
: the edit gets discarded without a prompt and the edit process is canceled, just like clicking “Cancel”. This doesn’t happen while composing a new comment, but this is also not what the question is about…91.0.4472.77
. Also repro'd on Microsoft Edge / Win 10.Esc
then telling the user: PressEsc
again to exit editor is not hard to implement.