From dbce21f293d7ca887fc6eeb00b10598cb0c4e1f2 Mon Sep 17 00:00:00 2001 From: alec Date: Tue, 3 Aug 2010 08:49:13 +0000 Subject: - Fix ESC key doesn't close folder name edition field in Google Chrome git-svn-id: https://svn.roundcube.net/trunk@3858 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/js/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'roundcubemail/program/js') diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js index 53eeb71c9..c4966eee0 100644 --- a/roundcubemail/program/js/app.js +++ b/roundcubemail/program/js/app.js @@ -4045,7 +4045,7 @@ function rcube_webmail() reg = new RegExp('['+RegExp.escape(this.env.delimiter)+']?[^'+RegExp.escape(this.env.delimiter)+']+$'); this.name_input.__parent = this.env.subscriptionrows[id][0].replace(reg, ''); - this.name_input.onkeypress = function(e){ rcmail.name_input_keypress(e); }; + this.name_input.onkeydown = function(e){ rcmail.name_input_keydown(e); }; row.cells[0].replaceChild(this.name_input, row.cells[0].firstChild); this.edit_folder = id; @@ -4068,7 +4068,7 @@ function rcube_webmail() }; // handler for keyboard events on the input field - this.name_input_keypress = function(e) + this.name_input_keydown = function(e) { var key = rcube_event.get_keycode(e); -- cgit v1.2.3