summaryrefslogtreecommitdiff
path: root/program/js/list.js
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2008-09-05 10:32:25 +0000
committerthomascube <thomas@roundcube.net>2008-09-05 10:32:25 +0000
commit6e6e89324c231737936acc3a30558df7e9649551 (patch)
tree35baa9cd67edb77cfe9f3d92281265ea9929aa19 /program/js/list.js
parent8beee1b56812aeddfaf4a5d8a43f7e9309b073df (diff)
Capture backspace key in list mode (#1484566)
Diffstat (limited to 'program/js/list.js')
-rw-r--r--program/js/list.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/program/js/list.js b/program/js/list.js
index 97549f7eb..f33c67c7b 100644
--- a/program/js/list.js
+++ b/program/js/list.js
@@ -26,6 +26,7 @@ function rcube_list_widget(list, p)
// static contants
this.ENTER_KEY = 13;
this.DELETE_KEY = 46;
+ this.BACKSPACE_KEY = 8;
this.list = list ? list : null;
this.frame = null;
@@ -574,6 +575,9 @@ key_press: function(e)
this.shiftkey = e.shiftKey;
this.key_pressed = keyCode;
this.trigger_event('keypress');
+
+ if (this.key_pressed == list.BACKSPACE_KEY)
+ return rcube_event.cancel(e);
}
return true;