Hide close/hide dialog when esc key is pressed fixes issue #441

This catches the 'esc' key and closes any div.dialog popups currently visible on screen. Fixes issue #441