diff options
author | alecpl <alec@alec.pl> | 2010-10-05 07:49:00 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2010-10-05 07:49:00 +0000 |
commit | c288f9969e113cb7dbd38bf05167cc8e94e007ff (patch) | |
tree | 5f7b6f81a41fee3097d626712091a3fee7591452 /program/js/app.js | |
parent | 8cfbc47e895becc0af66d736ce5cc2bd7946feed (diff) |
- Improve r4038: we can use keypress on FF and Opera, here we've got repetition
- Small code cleanup
Diffstat (limited to 'program/js/app.js')
-rw-r--r-- | program/js/app.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/program/js/app.js b/program/js/app.js index 3a2cb08bf..93db9b93e 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -2768,7 +2768,7 @@ function rcube_webmail() this.init_address_input_events = function(obj) { - obj.keydown(function(e){ return ref.ksearch_keydown(e, this); }) + obj[bw.ie || bw.safari || bw.chrome ? 'keydown' : 'keypress'](function(e){ return ref.ksearch_keydown(e, this); }) .attr('autocomplete', 'off'); }; |