diff options
author | Artem Lavrukhin <lavryha4590@gmail.com> | 2021-10-22 12:32:54 +0300 |
---|---|---|
committer | Benjamin Brahmer <info@b-brahmer.de> | 2021-10-23 12:31:55 +0200 |
commit | 9fb9a4c6daf530440c5a3be0122acf8838de76cc (patch) | |
tree | 2e2b2fdd8a030bcb35d5de47d18ef59b7d893533 /js | |
parent | 6f1a506bbd1b091d2c66a512146686bcb6745f1d (diff) |
Mark latest post as read when clicking on right arrow shortcut
Signed-off-by: Artem Lavrukhin <lavryha4590@gmail.com>
Diffstat (limited to 'js')
-rw-r--r-- | js/gui/KeyboardShortcuts.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/js/gui/KeyboardShortcuts.js b/js/gui/KeyboardShortcuts.js index 092968450..b6310fef5 100644 --- a/js/gui/KeyboardShortcuts.js +++ b/js/gui/KeyboardShortcuts.js @@ -288,6 +288,8 @@ var nextElement = activeElement.next(); if (nextElement.length > 0) { scrollToItem(scrollArea, nextElement, expandItemInCompact); + } else if (nextElement.length === 0) { + activeElement.find('.utils').trigger('click'); } else { // in case this is the last item it should still scroll below // the |