summaryrefslogtreecommitdiff
path: root/program/js/list.js
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-06-05 13:18:08 +0000
committeralecpl <alec@alec.pl>2009-06-05 13:18:08 +0000
commit1691a8e91af06e249291747f81045dd2cd97cb5e (patch)
tree4b020faf5d90a332514ffbc81c176156f88e2dc0 /program/js/list.js
parentb4ee74cda76e2298bad0b4db9e82bf5b0799e8e7 (diff)
- fix key repetition (#1485672)
Diffstat (limited to 'program/js/list.js')
-rw-r--r--program/js/list.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/program/js/list.js b/program/js/list.js
index f47040985..193e4670d 100644
--- a/program/js/list.js
+++ b/program/js/list.js
@@ -90,7 +90,7 @@ init: function()
// set body events
if (this.keyboard) {
- rcube_event.add_listener({element:document, event:'keypress', object:this, method:'key_press'});
+ rcube_event.add_listener({element:document, event:bw.opera?'keypress':'keydown', object:this, method:'key_press'});
rcube_event.add_listener({element:document, event:'keydown', object:this, method:'key_down'});
}
}
@@ -680,7 +680,8 @@ key_down: function(e)
{
case 27:
if (this.drag_active)
- this.drag_mouse_up(e);
+ return this.drag_mouse_up(e);
+
case 40:
case 38:
case 63233: