alecpl
2010-09-06 0a36c392db0120534ee6d24beed7b2333c9991cb
- Fix closing popups with ESC key on some browsers


1 files modified
4 ■■■■ changed files
skins/default/functions.js 4 ●●●● patch | view | raw | blame | history
skins/default/functions.js
@@ -237,7 +237,7 @@
  return false;
},
body_keypress: function(evt, p)
body_keydown: function(evt, p)
{
  if (rcube_event.get_keycode(evt) == 27) {
    for (var k in this.popups) {
@@ -426,7 +426,7 @@
{
  rcmail_ui = new rcube_mail_ui();
  rcube_event.add_listener({ object:rcmail_ui, method:'body_mousedown', event:'mousedown' });
  rcube_event.add_listener({ object:rcmail_ui, method:'body_keypress', event:'keypress' });
  rcube_event.add_listener({ object:rcmail_ui, method:'body_keydown', event:'keydown' });
  $('iframe').load(iframe_events)
    .contents().mouseup(function(e){rcmail_ui.body_mousedown(e)});