Skip to content

Commit

Permalink
Removed CloseOnEsc completely because it has issues on IE6
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Feb 12, 2004
1 parent bdb03ca commit 554143f
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions lib/editor/popups/fullscreen.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,23 +37,6 @@
var parent_object = null;
var editor = null; // to be initialized later [ function init() ]

/* ---------------------------------------------------------------------- *\
Function :
Description :
\* ---------------------------------------------------------------------- */

function _CloseOnEsc(ev) {
if (document.all) {
// IE
ev = window.event;
}
if (ev.keyCode == 27) {
// update_parent();
window.close();
return;
}
}

/* ---------------------------------------------------------------------- *\
Function : cloneObject
Description : copy an object by value instead of by reference
Expand Down Expand Up @@ -135,9 +118,6 @@ function() { window.close(); } ];
setInterval(update_parent, 500);

// setup event handlers
document.body.onkeypress = _CloseOnEsc;
editor._doc.body.onkeypress = _CloseOnEsc;
editor._textArea.onkeypress = _CloseOnEsc;
window.onresize = resize_editor;
}, 333); // give it some time to meet the new frame
}
Expand Down

0 comments on commit 554143f

Please sign in to comment.