diff options
author | alecpl <alec@alec.pl> | 2009-05-26 07:28:42 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2009-05-26 07:28:42 +0000 |
commit | 91d1a15ba89398cfb1a58f372b4a4329547b41a3 (patch) | |
tree | 9d697646d3927e411521379dd1f3e9f753e00d75 /program/js/list.js | |
parent | 1301e981103696df7745fc0015762e25aee854db (diff) |
- Add drag cancelling with ESC key (#1484344)
Diffstat (limited to 'program/js/list.js')
-rw-r--r-- | program/js/list.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/program/js/list.js b/program/js/list.js index 17bf4cf3f..addd1e652 100644 --- a/program/js/list.js +++ b/program/js/list.js @@ -625,6 +625,7 @@ key_press: function(e) var keyCode = rcube_event.get_keycode(e); var mod_key = rcube_event.get_modifier(e); + switch (keyCode) { case 40: @@ -653,6 +654,9 @@ key_down: function(e) { switch (rcube_event.get_keycode(e)) { + case 27: + if (this.drag_active) + this.drag_mouse_up(e); case 40: case 38: case 63233: |