summaryrefslogtreecommitdiff
path: root/roundcubemail/program
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-10-05 07:20:27 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-10-05 07:20:27 +0000
commitb2c8ca5f6a9121ee7c8f89f4f7220c07196672c8 (patch)
tree7a18fb8c9995e3f28c809acc78a94cf03bda4729 /roundcubemail/program
parentb9046b61b2f48ba2103553867fc54ee1677551f5 (diff)
- Fix keyboard doesn't work with autocomplete list with Chrome (#1487029)
git-svn-id: https://svn.roundcube.net/trunk@4038 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
-rw-r--r--roundcubemail/program/js/app.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js
index 83a6df2e3..3a2cb08bf 100644
--- a/roundcubemail/program/js/app.js
+++ b/roundcubemail/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);