Fixing [Bug 1427] (Better than just uncommenting :-) )

This commit is contained in:
julmis 2004-05-22 17:58:14 +00:00
parent e60624da41
commit b136a79771

View file

@ -44,15 +44,17 @@ var editor = null; // to be initialized later [ function init() ]
\* ---------------------------------------------------------------------- */ \* ---------------------------------------------------------------------- */
function _CloseOnEsc(ev) { function _CloseOnEsc(ev) {
try {
if (document.all) { if (document.all) {
// IE // IE
ev = window.event; ev || (ev = editor._iframe.contentWindow.event);
} }
if (ev.keyCode == 27) { if (ev.keyCode == 27) {
// update_parent(); // update_parent();
window.close(); window.close();
return; return;
} }
} catch(e) {}
} }
/* ---------------------------------------------------------------------- *\ /* ---------------------------------------------------------------------- *\