Close dialog when escape key is pressed. This also discontinues the video.
Using the onHidden option to close the video when the dialog is dismissed.
Moved more functions to onHidden.
Whenever a dialog is hidden, remove it.
Removed calling dialog.hide() function.
Brought back the hide function for clear code.
Merge pull request #157 from nanan9177/blockly_fix

Close dialog when escape key is pressed. This also discontinues the vide...