Steps to replicate the issue (include links if applicable):
- Edit a page in VisualEditor
- Insert a new code block (Insert -> Code block or type <syntax)
- The Code block dialog opens
- Type some code into the dialog
- Accidentally press the Escape key
What happens?: The dialog closes. The code I typed is lost.
What should have happened instead?: The dialog should warn that I'm about to lose what I typed.
Software version (skip for WMF-hosted wikis like Wikipedia): WMF production
Other information (browser name/version, screenshots, etc.):