fix(modal): give a reason of rejection when escape key pressed

Fixes #1956
Closes #1991