[Svn] r3943 - trunk/roundcubemail/skins/default

trac at roundcube.net trac at roundcube.net
Mon Sep 6 19:37:55 CEST 2010


Author: alec
Date: 2010-09-06 12:37:54 -0500 (Mon, 06 Sep 2010)
New Revision: 3943

Modified:
   trunk/roundcubemail/skins/default/functions.js
Log:
- Fix closing popups with ESC key on some browsers


Modified: trunk/roundcubemail/skins/default/functions.js
===================================================================
--- trunk/roundcubemail/skins/default/functions.js	2010-09-06 17:06:38 UTC (rev 3942)
+++ trunk/roundcubemail/skins/default/functions.js	2010-09-06 17:37:54 UTC (rev 3943)
@@ -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)});

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list