summaryrefslogtreecommitdiff
path: root/program/js/treelist.js
diff options
context:
space:
mode:
Diffstat (limited to 'program/js/treelist.js')
-rw-r--r--program/js/treelist.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/program/js/treelist.js b/program/js/treelist.js
index 8773cb884..7ff9d75bf 100644
--- a/program/js/treelist.js
+++ b/program/js/treelist.js
@@ -807,8 +807,8 @@ function rcube_treelist_widget(node, p)
else if (dir < 0 && !from_child && next.children('ul[role=group]:visible').length) {
next.children('ul').children('li:last').find('a:first').focus();
}
- else if (next.length && next.find('a:first')) {
- next.find('a:first').focus();
+ else if (next.length && next.find('a:first').focus().length) {
+ // focused
}
else {
parent = li.parent().closest('li[role=treeitem]');