summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-10-05 07:20:27 +0000
committeralecpl <alec@alec.pl>2010-10-05 07:20:27 +0000
commit8cfbc47e895becc0af66d736ce5cc2bd7946feed (patch)
treeec3dec8ad4467232ec8a07e5adcec2e61ef85aab
parent12daf6ddf560625aca14f268994f993782125a81 (diff)
- Fix keyboard doesn't work with autocomplete list with Chrome (#1487029)
-rw-r--r--CHANGELOG1
-rw-r--r--program/js/app.js7
2 files changed, 4 insertions, 4 deletions
diff --git a/CHANGELOG b/CHANGELOG
index 40e21bcc3..632e78c59 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -20,6 +20,7 @@ CHANGELOG Roundcube Webmail
- Add Reply-to-List feature (#1484252)
- Add Mail-Followup-To/Mail-Reply-To support (#1485547)
- Fix confirmation message isn't displayed after sending mail on Chrome (#1486177)
+- Fix keyboard doesn't work with autocomplete list with Chrome (#1487029)
RELEASE 0.4.1
-------------
diff --git a/program/js/app.js b/program/js/app.js
index 83a6df2e3..3a2cb08bf 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -2768,9 +2768,8 @@ function rcube_webmail()
this.init_address_input_events = function(obj)
{
- var handler = function(e){ return ref.ksearch_keypress(e,this); };
- obj.bind((bw.safari || bw.ie ? 'keydown' : 'keypress'), handler);
- obj.attr('autocomplete', 'off');
+ obj.keydown(function(e){ return ref.ksearch_keydown(e, this); })
+ .attr('autocomplete', 'off');
};
// checks the input fields before sending a message
@@ -3278,7 +3277,7 @@ function rcube_webmail()
/*********************************************************/
// handler for keyboard events on address-fields
- this.ksearch_keypress = function(e, obj)
+ this.ksearch_keydown = function(e, obj)
{
if (this.ksearch_timer)
clearTimeout(this.ksearch_timer);