From 9749aeeb0bda83019c1872a72d438a19f9cb3085 Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Mon, 16 Jun 2014 12:35:57 +0200 Subject: Avoid scrolling of lists and menus when navigating with cursor keys (#1489929) --- program/js/treelist.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'program/js/treelist.js') diff --git a/program/js/treelist.js b/program/js/treelist.js index ea1729806..1427c2480 100644 --- a/program/js/treelist.js +++ b/program/js/treelist.js @@ -739,7 +739,7 @@ function rcube_treelist_widget(node, p) if (li.length) { focus_next(li, (mod = keyCode == 38 || keyCode == 63232 ? -1 : 1)); } - break; + return rcube_event.cancel(e); case 37: // Left arrow key case 39: // Right arrow key -- cgit v1.2.3