From 9fb9a4c6daf530440c5a3be0122acf8838de76cc Mon Sep 17 00:00:00 2001 From: Artem Lavrukhin Date: Fri, 22 Oct 2021 12:32:54 +0300 Subject: Mark latest post as read when clicking on right arrow shortcut Signed-off-by: Artem Lavrukhin --- js/gui/KeyboardShortcuts.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'js') 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 -- cgit v1.2.3