Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit b136a797712eb5ffb8881eb7c761110e99bbf903 1 parent e60624d
julmis authored
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) {}
}
/* ---------------------------------------------------------------------- *\
Please sign in to comment.
Something went wrong with that request. Please try again.