From 1fe60e25c91266b44cee5cc5d858367df7929f90 Mon Sep 17 00:00:00 2001 From: alecpl Date: Mon, 26 Jul 2010 10:52:06 +0000 Subject: - Fix group creation field hiding on webkit (Chromium) (#1486839) --- program/js/app.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/program/js/app.js b/program/js/app.js index 25ab46875..a9da55744 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -3710,7 +3710,7 @@ function rcube_webmail() if (!this.name_input) { this.name_input = $('').attr('type', 'text'); - this.name_input.bind('keypress', function(e){ return rcmail.add_input_keypress(e); }); + this.name_input.bind('keydown', function(e){ return rcmail.add_input_keydown(e); }); this.name_input_li = $('
  • ').addClass('contactgroup').append(this.name_input); var li = this.get_folder_li(this.env.source) @@ -3728,7 +3728,7 @@ function rcube_webmail() if (!this.name_input) { this.enable_command('list', 'listgroup', false); this.name_input = $('').attr('type', 'text').val(this.env.contactgroups['G'+this.env.source+this.env.group].name); - this.name_input.bind('keypress', function(e){ return rcmail.add_input_keypress(e); }); + this.name_input.bind('keydown', function(e){ return rcmail.add_input_keydown(e); }); this.env.group_renaming = true; var link, li = this.get_folder_li(this.env.source+this.env.group, 'rcmliG'); @@ -3762,7 +3762,7 @@ function rcube_webmail() }; // handler for keyboard events on the input field - this.add_input_keypress = function(e) + this.add_input_keydown = function(e) { var key = rcube_event.get_keycode(e); -- cgit v1.2.3