Skip to content
Browse files

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

  • Loading branch information...
1 parent e60624d commit b136a797712eb5ffb8881eb7c761110e99bbf903 julmis committed May 22, 2004
Showing with 11 additions and 9 deletions.
  1. +11 −9 lib/editor/popups/fullscreen.php
View
20 lib/editor/popups/fullscreen.php
@@ -44,15 +44,17 @@
\* ---------------------------------------------------------------------- */
function _CloseOnEsc(ev) {
- if (document.all) {
- // IE
- ev = window.event;
- }
- if (ev.keyCode == 27) {
- // update_parent();
- window.close();
- return;
- }
+ try {
+ if (document.all) {
+ // IE
+ ev || (ev = editor._iframe.contentWindow.event);
+ }
+ if (ev.keyCode == 27) {
+ // update_parent();
+ window.close();
+ return;
+ }
+ } catch(e) {}
}
/* ---------------------------------------------------------------------- *\

0 comments on commit b136a79

Please sign in to comment.
Something went wrong with that request. Please try again.