From c321e2fb24c84187d6015525ebaded826cd8f8d4 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Tue, 03 Aug 2010 04:49:13 -0400
Subject: [PATCH] - Fix ESC key doesn't close folder name edition field in Google Chrome

---
 program/js/app.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/program/js/app.js b/program/js/app.js
index 53eeb71..c4966ee 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -4045,7 +4045,7 @@
 
       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 @@
   };
 
   // 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);
 

--
Gitblit v1.9.1