summaryrefslogtreecommitdiffstats
path: root/js/gui/KeyboardShortcuts.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/gui/KeyboardShortcuts.js')
-rw-r--r--js/gui/KeyboardShortcuts.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/js/gui/KeyboardShortcuts.js b/js/gui/KeyboardShortcuts.js
index 3b3634333..b5944bb26 100644
--- a/js/gui/KeyboardShortcuts.js
+++ b/js/gui/KeyboardShortcuts.js
@@ -76,7 +76,8 @@
// if the previous element is a folder we have to go down
var childFeed = getChildFeed(previousElement);
if (previousElement.hasClass('folder') && childFeed.length !== 0) {
- previousElement = childFeed.prev('li:visible');
+ // fixme: last child
+ previousElement = childFeed.prev('li:visible:last-child');
}
previousElement.children('a:visible').trigger('click');