Currently EditAddressDialog and OptionsDialog don't close when the escape key is pressed. The QDataWidgetMapper instances prevents closing the dialogs because the escape key is used to reset the widgets values. More details and workarounds in https://stackoverflow.com/a/51487847 and http://qtramblings.blogspot.com/2010/10/qdatawidgetmapper-annoyances.html.
The adopted solution is different from the above references. It turns out that QDataWidgetMapper::setItemDelegate sets the event filter for all mapped widgets. So in this PR the mapper's delegate are changed to a custom GUIUtil::ItemDelegate that offers the signal keyEscapePressed, which is connected to the QDialog::reject slot.
Note that the installed event filter lets all events pass, so the current behaviour isn't changed, meaning that widgets values are reset in addition to closing the dialog.