diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-05-08 10:13:42 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-05-08 10:13:42 +0200 |
commit | 5e1005f3e704c01476cd7f971698d42296ed3795 (patch) | |
tree | 385bd2ae8c3b4a6387e71f400e51618b4c868606 /js/gui/KeyboardShortcuts.js | |
parent | e76e75ac80e209d9f3f5be0ef119282590173190 (diff) |
fix #786
Diffstat (limited to 'js/gui/KeyboardShortcuts.js')
-rw-r--r-- | js/gui/KeyboardShortcuts.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/js/gui/KeyboardShortcuts.js b/js/gui/KeyboardShortcuts.js index 1b3b05976..ffa5d88a9 100644 --- a/js/gui/KeyboardShortcuts.js +++ b/js/gui/KeyboardShortcuts.js @@ -298,7 +298,12 @@ items.each(function (index, item) { item = $(item); - if (item.position().top > 1) { + // special treatment for items that have expand enabled: + // if you click next and the first item has not been expaned and + // is on the top, it should be expanded instead of the next one + if ((item.position().top === 0 && expandItemInCompact && + !item.hasClass('open')) || + item.position().top > 1) { scrollToItem(scrollArea, item, expandItemInCompact); jumped = true; |