On all modal dialog boxes, pressing the escape key should close the window. Examples:

* "insert image" dialog

* "insert file" dialog

* "insert code block" dialog

* "copy link to this selection" dialog"

Currently these don't work.