When the user opens a modal window and clicks on an element that is NOT a form input and tries to close the modal window pressing the ESC key, the modal window will not close.
How to reproduce:
1. Open a modal window, e.g. Try to create a new volume, instance or image.
2. Click on an element that is NOT a form input, e.g "Description Text", or a white space or any other element that makes inputs to lose focus.
3. Press the ESC key and the modal window won't close.
The modal window DO close if a form input has focus, but if any of those elements loses focus then using ESC key to close the window will not work.
UPDATE #1: Pressing ESC key when creating instances does seem to work. But still the other behavior exists When creating volumnes or images.
Fix proposed to branch: master /review. openstack. org/341114
Review: https:/