From f51a3eb942b9d4c5196319913001131153e5f136 Mon Sep 17 00:00:00 2001 From: alec Date: Fri, 5 Jun 2009 13:18:08 +0000 Subject: - fix key repetition (#1485672) git-svn-id: https://svn.roundcube.net/trunk@2612 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/js/list.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/roundcubemail/program/js/list.js b/roundcubemail/program/js/list.js index f47040985..193e4670d 100644 --- a/roundcubemail/program/js/list.js +++ b/roundcubemail/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: -- cgit v1.2.3